I seem to have a habit of fixing my own problems lately

This example (03) is a bit rough, but it works, and sounds like a pedestrian crossing gone funky. It's part of an installation I'm making for a bit of street art in my local Mall

Feel free to mess about with it...
**Original Post below **
Hi all,
I had a neat sketch playing a little sequence of sine tones on a regular 328p arduino, but it was based on changing 2 timer registers to play back sampled waveforms rather than just pumping out square waves, so getting it working on the 32u4 leostick has me pulling my hair out...
I'm trying to use timer 1 as high speed pwm, sending this to pin 11 via Output Compare register OC1C, and timer 3 is handling the tone pitch by stepping through a sampled wave.
On the 328p, I was using timers 1 and 2, but the whole setting register thing is a bit new to me.
Can anyone out there who knows their way around timers on the leonardo/leostick lend a hand?
Since there's a piezo just sitting on pin 11, this would be a great little mini synth platform...
The synthesis method and code I'm using was adapted from this post : http://www.maxwellrosspierson.com/2009/ ... ulation/2/ and is pretty neat.
Anyhow, I've attached my rough sketch if you are keen to check it out -
cheers,
Richard
Footscray!
PS. If u get it working, and you live in Australia, see if you recognise the tones...