[sdiy] Coding digital waveforms
Justin Owen
juzowen at googlemail.com
Thu Dec 17 14:22:54 CET 2009
Hello,
I've started writing some code for Arduino to output digital waveforms to use as tempo synced LFOs - but was hoping for some general guidance in case there's a better way of approaching it.
At the moment I'm just using a counter to increment through an array of values that output to a DAC. It's a fixed frequency at the moment - but the plan is to set up a variable to tell it how 'fast' to run through the array - or how many of the values to use. It's basic and there's loads of room for improvement - but so far it works.
So firstly - considering that my code game is pretty basic - is there a better way of handling it than this?
and secondly - to smooth the output (which is obviously 'stepped' right now) - should I be looking at some type of 'lag' circuit (i.e. the resistor/diode/cap combo) - or something else?
Thanks again to everyone that helped with the whole micro-DAC-Multiplexer-S&H set up . Works like a charm.
Cheers all,
Justin
More information about the Synth-diy
mailing list