Arduino Synthesizer

I’ve been interested in experimenting with electronic music for a while now and also recently started doing some work with the Arduino. So I thought, ‘why not try both?’ I began with a great article I found on Make Magazine (one of my absolute favorite sites) to create the basic script to generate an audio signal with an Arduino. A Digital to Analog Converter (DAC) converts the binary outputs from the Arduino into a relatively fluid scale of voltages which make up the sound wave

On the electronics side, my setup is quite similar to my reference, with the addition of a small amplifier using an LM386 op amp chip and a couple resistors and capacitors for some basic filtering. On the code side I’ve created a much more substantial instrument. Using Processing I built an interface to create a 32 sample waveform and a melody. The data is sent live to the Arduino which places the data into it’s waveform array and then using a timer writes each value sequentially to the DAC to create the sound.

arduino_synthesizer_dac

The interface contains two sets of sliders. One represents the shape of the sound wave. Changing the shape alters the timbre of the sound. The second set controls a series of pitches. The currently playing note is lit and a light bar indicates the current position of the playhead. The waveform sliders can be adjusted individually or as a group by clicking and dragging across the set. The sequence bars control both the pitch and the frequency of the notes.

arduino_synthesizer_interface

05.07.2009

noman

I think audio to visuals is more interesting than vice versa, due to the fact that visuals have to be extremely simplified to produce a pleasant sound.
And then there is the fact that -correct me if I’m wrong- there already are a ton of plugins for this functionality.


05.07.2009

noman

Nonetheless a cool setup, though.


05.07.2009

Arduino synth/sequencer with Processing + R2R DAC – machine quotidien

[...] So awesome to see such a simple project pushed so much further! Get all the relevant code plus detailed description over on Anthony’s blog. [...]


05.07.2009

tony

That’s true. There are a lot of plugins that do similar things but the audio quality isn’t good enough for anything serious. This was just a fun experiment. I also tried to create a more intuitive interface that some other programs.


05.07.2009

noman

Kind of hateful to see lines of code about audio, when I want to learn about your particle system, haha.
It’s all good, though.


05.08.2009

Arduino synth/sequencer with Processing + R2R DAC | SquareCows

[...] So awesome to see such a simple project pushed so much further! Get all the relevant code plus detailed description over on Anthony’s blog. [...]