Apex › Storage & databases

The shape of every note (ADSR envelope)

Flipping an oscillator on/off clicks — an instant amplitude jump has energy at all frequencies — so an ADSR envelope multiplies the tone by a smooth four-stage contour: Attack (rise to full), Decay (fall to the sustain level), Sustain (hold while the key is down — a level, not a time), Release (fall to 0 on key-up, from the current level). A fast attack + zero sustain is a pluck; a slow attack + high sustain is a pad. The same four-knob signal also modulates filter cutoff, pitch, or FM depth. Verified in node: the breakpoints hit exactly, the contour is continuous at every boundary including gate-off, and release starts from the current level. Pick a voice and change the key-hold time.

More in Storage & databases