At the risk of extending the tangent a little bit more…
If you want to run Puredata on a minimal Pi system, here’s what I do: I run it with a very small image, with just enough to connect via VNC and run graphically when I need to develop or debug on the Pi. But when performing, I run w/o the X system started, and Puredata runs headless.
Here are the parts. This is probably adaptable to many other Puredata installations as well.
Installation
This all fits in under 3G of disk. (Perhaps even less, I have build tools on there as well, as I’m building Puredata externals.)
Running
- use a script like the following to start Puredata:
export XAUTHORITY=/home/pi/.Xauthority
export DISPLAY=:0
PD_GUI='-nogui'
if xhost > /dev/null 2> /dev/null; then
PD_GUI=''
else
unset XAUTHORITY
unset DISPLAY
fi
# these will vary with your setup
PD_AUDIO='alsa -audioadddev pisound -audiobuf 10 -channels 2 -r 48000'
PD_MIDI='-alsamidi -mididev 1,2 '
PD_PATCH='my-cool-thing.pd'
nohup puredata $PD_GUI $PD_AUDIO $PD_MIDI -send ";pd dsp 1" "$PD_PATCH" > /tmp/pdout 2>&1 &
If you are VNC’d in and run this script, Puredata will start with a GUI and it will pop up on your screen. If you are running headless and run this script, Puredata will run without a GUI.