el.adsr([props], a, d, s, r, g)
An exponential ADSR envelope generator, triggered by the gate signal g
. When the
gate is high (1), this generates the ADS phase. When the gate is low, the R phase.
Expected children:
- Attack time in seconds (number or signal)
- Decay time in seconds (number or signal)
- Sustain amplitude between 0 and 1 (number or signal)
- Release time in seconds (number or signal)
- Gate signal; a pulse train alternating between 0 and 1
Props
None