My stab at an Arduino Synth

I was trying to avoid the portstuff for now, hence the CD4051 (de)multiplexers. These put out one bit at a time so the result may be vastly different. It's good to see the R2R DAC put enough through for a headphone. I can still add the amp later.

For single cycle waveform playing an array of 32 bytes seems more than sufficient. I have another cool idea.

Draw_Waveform: press "record", draw a waveform from analogIn, press "end record". Depending on how fast you draw you get a different number of samples each recording. Put these in a temporary array, count the number of samples. Now devide this number by x, to get 32 (roughly).

How's that done by the way?

Next take evey x'th sample from the temporary array, put them in the 32 byte waveform array, maybe do some smoothing, play looped.

There's no smiley for "impatient" I'm afraid....