Personal tools
You are here: Home documentation developer BuildingPdForBeagleboard
Views
BuildingPdForBeagleboard copied


Although the only documentation I could find on the web was about getting Pda to build on the Beagleboard, full-blown Pd works fine once audio has been sorted out.

Setup

I was not able to get Pd properly working on the Ångström distribution I was using - the sound just never sounded good. I suggest that Ubuntu is installed on the Beagleboard instead. I used Ubuntu 10.04. Full instructions are available on the eLinux.org wiki: http://elinux.org/BeagleBoardUbuntu .

Make sure you have some kind of sound output. Although the ALSA driver seems to have bugs when used by Pd, normal system sound using ALSA should work out of the box; however the mixer volume for sound output might be set to 0. Go ahead and turn up all of the levels using alsamixer. I think I had to turn up 'headset volume' or something similar. You can use mpg123 or aplay to send some sound output to the ALSA driver; mpg123 conveniently allows you to use an http:// url:

$ mpg123 http://frey.co.nz/content/music/frey-recirculate.mp3

Installing Pd

Just use apt-get:

$ sudo apt-get install puredata

Try to run using ALSA (expect broken sound):

$ pd -alsa

If it works using the ALSA driver then you're luckier than I was. If you get this kind of sound instead: http://soundcloud.com/damian/pure-data-on-beagleboard-sound-issue then you need to follow the next steps.

Getting sound to work

If your sound sounds like this when running the audio test patch: http://soundcloud.com/damian/pure-data-on-beagleboard-sound-issue then you need to use the OSS driver instead of ALSA.

Load the OSS driver kernel module:

$ sudo modprobe snd-pcm-oss

Run Pd using OSS. You need to set the audio block size to at least 1024 samples, or you'll get crackles (but they sound different to the ALSA crackles):

$ pd -oss -blocksize 1024 

Finished

That wasn't so bad, was it?



Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser