This is usually due to Pd starting up too quickly with -nogui and not setting up the audio in time.
I assume you're using a loading to turn on DSP in the patch, try adding a delay ala:
[loadbang] | [delay 100] | [ pd dsp 1; <
I have an Odroid-XU4 running Ubuntu 16.04.3 LTS and I'm running Pd-0.48-1 on it. I want to enclose it and use it headless so I'm launching Pd on boot via crontab. This is what I've written in crontab:
@reboot sleep 30 ; pd -alsa -audiodev 3 -inchannels 2 -outchannels 4 -nogui -open /home/odroid/Documents/Pd/3dPd/Pd_patches/modular_synthesizer.pd &
Half of the times I'm booting up the Odroid, Pd won't make any sound. I have an LED controlled by a Teensy, which gets input from Pd when the DSP goes on (through [r pd] -> [route dsp]), and it indicates that the DSP is indeed on.
Is there some known issue, or anyone has something in mind?
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
On 17/05/2018 09:28 μμ, Dan Wilcox wrote:
This is usually due to Pd starting up too quickly with -nogui and not setting up the audio in time.
I assume you're using a loading to turn on DSP in the patch, try adding a delay ala:
[loadbang] | [delay 100] | [ pd dsp 1; <
Well, I'm using a physical switch to turn the DSP on, doing it manually. When the Pd patch is opened, the DSP LED blinks once, to notify me of Pd being ready (without turning on the actual DSP). After the LED blinks (which takes 500 ms), I turn the DSP on with the switch. So, that shouldn't be the problem.