#include <Envelope.h>
Most of this is inherited from Envelope. This design is an extended ADSR envelope with an initial constant segment and offset (default = 0; this can be used to make an attack delay as on ARP ADSRs), attack time and max. val (default = 1.0), decay time, sustain level, and release time and final value (default = 0.0). All times are assumed to be given in seconds. Note that there are many variations on the constructor. The 5 line segments used internally look something like the following
| / . | / \ . | / \--------------- . | / \ . |---/ \ . | \----- . --------------------------------------------------------------------
Note that, internally, the breakpoints are kept with cumulative times, whereas the line segments only have start/stop Y values and durations (i.e., no absolute time reference).
1.4.5-20051010