By Olaf Matthes
There is no easy way. Here are suggestions.
At Create Digital Noise
- Same instructions easier to read… http://robertesler.com/libpd-with-processing/
Making Musical Apps: Real-time audio synthesis on Android and iOS
by Peter Brinkmann
libpd runs pure-data patches in iOS.
libpd for iOS on Github: https://github.com/libpd/pd-for-ios
A preliminary test before trying this in Raspberry-Pi, I used the general instructions for csound in pd from Victor Lazzarini found here:
to get csound running in pd-extended in Mac OS.
Looks pretty straightforward – biggest question will be compiling the external if it doesn’t install via package manager.
local test files are in tkzic/rpi/pd/csound
Here’s something from Victor Lazzarini which shows csound running on R-Pi
Here is installation instructions from Richard Dobson
Here’s a simple FM Midi synthesizer developed in pd running on a Raspberry Pi. The patch was written and tested on a Macbook, then the patch file is uploaded to RPi and run using pd-extended from the command line. For example the command to run this patch is:
pd-extended -nogui -noadc -midiindev 1 piSynth1.pd
[todo: upload patch to this site. Currently in tkzic/rpi/pd/piSynth1.pd]
[udpate]: when trying this again, a few problems came up:
- R-Pi didn’t recognize sound card/midi: Solution was to connect the sound card directly to the R-Pi USB port and connect the Midi controller via powered USB hub
- Sometimes pd-extended errors out with a device busy message. Seems to run ok if you press ctrl-c and repeat the pd-extended command line. I think this problem may be due to a previous process hanging – and not exiting cleanly
A collection of Pd synth patches that might run on Raspberry Pi.
- simple FM Midi synth from OReilly.com which I’m going to adapt to work with the nano-controller. http://oreilly.com/digitalmedia/2005/04/27/pd.html
- a sampler – which will take forever to figure out but it sounds cool: http://impala.utopia.free.fr/pd/
- controller things from William Brent: http://williambrent.conflations.com/pages/research.html
- From this wiki: http://creaciodigital.upf.edu/wikis/cdsim/index.php/Other_Pure_Data_goodies
In an audio pass-through test using Pd, with a USB sound card (Griffin iMic), the maximum stereo sample rate before ‘breakup’ is 32000.In mono, it sounds “ok” at 44100. Latency seems low enough to use for music but I’m too sleepy to figure out the numbers.
I don’t know enough about Linux audio to say if the performance deficit is due to ALSA drivers, the sound card, background processes, pd, the CPU, or what?Anyway I ‘m guessing R-Pi will spawn interesting synths and lo-fi FX processors. They’re cheap enough you could use them in parallel.
Prediction: They’ll double the speed, and sell a million more by the end of the year. We’ll see a range of ‘Pi’ clones which run the same Linux distributions, but offer various speeds and IO options. It feels like the democratization of manufacturing has taken another huge leap.