Creates and runs an envelope, sampling its values at sampleRateMs
.
Note that if the envelope loops, iterator never returns.
ADSR (Attack Decay Sustain Release) envelope. An envelope is a value that changes over time, usually in response to an intial trigger.
Base class for an ADSR envelope.
State change event
Options for the ADSR envelope.
Returns a function that iterates over an envelope