[sdiy] Soft ADSR ways?

Matthew Smith matt at smiffytech.com
Sun Feb 13 11:24:31 CET 2011


Quoth karl dalen at 13/02/11 20:36...
> How many ways could one do an ADSR in? Which one are
> fastest and which one are fast and code efficient??
...
> KD (dont talk math with me im crap at it)

I am designing an AD(H)SR generator and I also have math problems :-)

So far, I have identified that I need to find out how to do integer 
division, in simple steps.

But because I am going to have switchable linear/exponential A and D, I 
will be using table lookup for this - it will then be a case of dividing 
the time (0-255, I'm doing 8-bit) to get the delay between pushing table 
entries to the DAC.

I reckon that as ADSR waveforms are so slow, in microcontroller terms, 
calculation time should not be a big worry.

-- 
Matthew Smith

Blog: www.smiffysplace.com  Business: www.smiffytech.com
www.linkedin.com/in/smiffy  www.flickr.com/photos/msmiffy
twitter.com/smiffy



More information about the Synth-diy mailing list