Dan Newcome on technology

I'm bringing cyber back

Thinking about Raspberry PI for audio

with 6 comments

I’ve been busy with some audio projects recently but haven’t had much time for writing. Hopefully that changes soon, but in the meantime I’ve had some thoughts on future projects that I wanted to jot down. Usually I take my notes on this stuff in private, but I figured why not try riffing on this stuff on the blog?

I’ve been thinking of trying to grab a Raspberry PI single-board computer soon, and naturally I was thinking about using it to run Pure Data or something like that. However, I realized that it only has an audio output and no audio input. Seems like an unfortunate oversight, but as I understand it, getting the board to the current price point was quite a feat of engineering akin to shaving weight from a race car so I’m sure it was a necessary sacrifice.

This means that it could be a pretty cool little synthesizer maybe, but using it to process audio like a guitar pedal wouldn’t work right out of the box. I’ve seen some people trying to use little USB audio devices with the PI but I’m not sure if anyone has gotten low-latency audio working. There have been some documented issues with USB dropping data that may have affected some prior attempts at getting this to work, but hopefully those have been cleared up by now.

I looked around on Amazon for likely candidates for USB audio cards and found this. There are a bunch of these floating around but there is a pretty interesting comparison review that makes this one sound like a pretty good bet, albeit at a slightly higher price.

So if the PI and a little USB audio adapter coupled with a realitime Linux kernel could make a low-latency audio effects processor, that would be really awesome. It wouldn’t be as flashy as something like the OpenStomp pedal with its embedded DSP, but then everything is pretty much moving “native” anyway (is it proper to call it native when the entire system is as small as the PI and embedded anyway?) so this might be an interesting way of building something similar to the Korg Oasys but scaled down and on the cheap. For those who aren’t familiar with the Oasys, it was a keyboard manufactured by Korg that was essentially a Linux box running special Korg synthesis software and high quality audio interfaces. The differentiating factor is that the DSP was being done natively instead of on dedicated DSP chips with the Oasys.

So back to the Raspberry PI. There is an ethernet interface on this thing, and again, using USB you could outfit it with a wifi adapter to make it wireless. This could be a platform for running a distributed mesh of Pure Data patches with individual audio outputs.

I’m not sure how the PI handles booting and such. I’d imagine that I’d have to get a display connected to it at some point. Or maybe everything can be done using SSH over its ethernet port? I don’t know much about the board yet so I’m just spinning off scenarios here.

As an aside, the new Arduino Due sports a 32 bit ARM core running at 84Mhz. That should be fast enough to do some real signal processing natively, unlike the 8 bit Arduinos. Still, compared to using the PI the Arduino would be really roughing it with respect to doing any sophisticated audio work.


Written by newcome

October 23, 2012 at 12:14 am

Posted in Uncategorized

6 Responses

Subscribe to comments with RSS.

  1. Indeed, that’s what I’ve got the Pi for…

    da bishop

    December 24, 2012 at 7:24 am

  2. Dan – have you done anything with audio with the Raspberry Pi? I saw you got one for Christmas.

    I’m looking into doing the same thing – some real time audio processing and using Pure Data. Mainly looking to do some audio mixing – thinking about possibly running a USB interface into it and mixing 4 to 8 channels of audio in real time.

    Trying to get a hold of some people in the community that have done audio processing with the Raspberry Pi.


    January 23, 2013 at 9:04 pm

  3. @zach I played around with PD a little bit on it but I had some issues getting Jack working. I posted a little about it on another blog (http://audiodestrukt.wordpress.com/2012/12/30/configuring-raspberry-pi-for-audio/) I’m going to try running one of my node.js networked audio thingys on it soon (https://github.com/dnewcome/dub-siren.git). My audio and MIDI interfaces all worked perfectly on it right out of the box though, so that’s a good start (Presonus AudioBox, Behringer UCA202, assorted no-name MIDI and audio dongles).

    I’m doing some work with GStreamer and FFMpeg to try to get network audio streaming to it, but I’m also thinking about trying to do audio over HDMI. I read that HDMI supports 8 channels of audio, but I’m not sure if there are any good breakout/controller boards for HDMI yet.


    January 23, 2013 at 11:45 pm

  4. What Presonus Audiobox have you got?
    I’ve a Audiobox 1818VSL and it would be great to use the Raspberry Pi as an audio-routing matrix from analog-in to ADAT.

    Do you believe that’s possible?


    August 12, 2013 at 5:38 am

  5. @flashback – I have the AudioBox USB 2×2 and it works great. I think you’ll be ok. Mine is not a VSL (not as nice).


    August 12, 2013 at 9:43 pm

  6. I am bit worried about USB-performance, because routing 16 channels might be too much for the Pi.


    August 13, 2013 at 6:42 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: