Raspberry Pi synth gives a softsynth dedicated hardware

For all the musicians out there, here’s a great use for your Raspberry Pi. All the features you would expect from a nice analog synth are implemented in a Raspberry Pi-based polysynth – dual oscillators, LFOs, and phasers – and it looks like there will be a few more features added before the Raspi synth is released.

Even though the ‘synthesis’ part of the Raspi synth already sounds wonderful, getting MIDI on the Rasberry Pi leaves much to be desired. The creator of the Raspi synth thought about using the GPIO pins as a MIDI interface, but because the GPIO pins cannot run natively at 31250 bps (the MIDI spec), the Raspberry Pi has to waste most of its CPU cycles just listening for MIDI traffic.

Right now the Raspberry Pi synth is controlled by a USB-connected MIDI interface, and as you can hear after the break, sounds wonderful. We can’t wait to hear what this synth will be able to do in a few months’ time.

Comments

  1. Russtopia says:

    Uh… really? I admit I haven’t yet read the article. But an ARM chip running at multiple MHz can’t run a software UART, in Rx-only mode on some GPIO pins without using ‘most of its CPU cycles’?

    One can implement a single-duplex UART just fine at 31250 bps on an ATTiny85 at 8MHz. I’ve done it myself. Granted this was raw code, no OS to introduce jitter etc. but if Linux can do low enough latency ISR servicing, since the Pi runs a lot faster than 8 MHz it should be able to handle this as a background activity just fine.

    I admit I haven’t (yet) done a softsynth with this MIDI, but the software UART part (essentially just sampling an input pin and shifting into a Rx data register) should be the smallest part of the CPU load, compared to doing 44.1KHz audio.

    • Russtopia says:

      OK, I read the article now.. my bad. I see that according to his article he doesn’t have easy access to an edge-triggered interrupt so it would indeed take a lot of CPU to constantly monitor the input pin.

  2. Gösta says:

    Any filters coming up?

  3. zuul says:

    cool

  4. You could also do the hack way and don’t start oversampling till you are somewhere within the start bit, then start oversampling and use the knowledge of the remaining start bit time to retroactively calculate where you landed. then you stop oversampling cause you have the timing figured out.

    But I’m sure one of the proper ways of doing it would be better, as some comments suggest in the original post.
    #spendstoomuchtimeonserialprotocols

  5. Mitch says:

    Gidday, awesome project, have been following for the last week or two.
    Couple of questions, does the synth operate within raspbian (or any other OS) as some sort of script or is it an OS in itself?
    Also, did you cannibalise your iphone midi interface because there is something about it that the Rpi needs, or would a standard run of the mill dime-a-dozen midi->usb interface from ebay/similiar work just as well?

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 96,671 other followers