Protected
attackProtected
decayProtected
decayProtected
releaseIf true envelope will loop
Returns true if envelope has finished
Adds event listener.
Events
Event name
Event handler
Protected
computeProtected
fireFire event
Type of event
Arguments for event
Protected
onRemove event listener
Protected
switchTriggers envelope, optionally holding it.
If hold
is false (default), envelope will run through all stages,
but sustain stage won't have an affect.
If hold
is true, it will run to, and stay at the sustain stage.
Use release to later release the envelope.
If event is already trigged it will be retriggered.
Initial value depends on opts.retrigger
opts.initialValue
.If true envelope will hold at sustain stage
Base class for an ADSR envelope.
It outputs values on a scale of 0..1 corresponding to each phase.