Friday, January 1, 2016

DADSR Envelope Generator in Pure Data

I am new to Pure Data, and I created this DADSR envelope generator with looping capability.  I found the ADSR example in Miller Puckette's Pd book most useful.

Unfortunately I also read this blog and spent some time being confused because the Sustain stage is (incorrectly) implemented as a timed stage instead of as a sustained level to be held until the MIDI note off command is received.

Here is the Pd file.