anyone ever used pd~ sub process on rpi? works ok on mac but no matter what i do i dont get sound when i run it headless on my rpi 3
thanks!
pd~ subprocess on rpi
anyone ever used pd~ sub process on rpi? works ok on mac but no matter what i do i dont get sound when i run it headless on my rpi 3
thanks!
@francis666 No, but you might need to run Pd in background, and I have seen that with -nogui you need to delay the start of dsp (by maybe a second or two).
Although not specifically for [pd~] there is more here..... https://guitarextended.wordpress.com/2012/08/28/running-pd-on-a-headless-raspberry-pi/
..... which also helps as you then have access to the Pd terminal.
David.
thanks, pardon me for not detailing but i am running pd headless and monitoring it from the terminal via ssh, as far as i know the sub process does not have to have the dsp turned on, the super process (mother patch) should - at least this is how its documented in the help patch. none the less i tried it and it does not make a difference - while the mother patch works the sub process is not, so if any one ever had success do so ill be happy to hear.
@francis666 I just tried with my RPI3 Raspian Linux9 Stretch.... with a Pd GUI.
I run it headless, but with a desktop through a VNC.
I get a message "couldn't sync A/D/A" but it does work as expected for audio and messages, and once running the message is not repeated.
David.
thats very encouraging! did u get any sound? if so would u mind sharing the patch so i could try it?
@francis666 I just opened the [pd~-help] patch and connected a [dac~] to the outputs of the Pd~ object in that patch. Starting the sub-process and then ticking the toggle after the oscillator in the sub-process then produced undistorted tone from the RPI3 analog out.
You could do the same on your Mac and save it as a test patch (set the toggle properties to "save").
Just checked..... I thought I had Pd 0.49 on the PI through apt-get...... but it is 0.47.1.
PS If the [env~] connected to the output of [pd~] outputs "96" then the audio is working and the problem must be with your RPI3 audio setup. I didn't mention that because I assumed you have had audio from some other patch.
David
@francis666 It took me awhile to get pd~ to work on rpi. Here's the minor errors I did: make sure you start the audio in each pd~ subprocess, even if it's on in the parent patch. Also You can only use audio inputs and outputs, and make sure you take the second output for your audio. Once i cleared these up in my patch they worked for me.
Oops! Looks like something went wrong!