What is adsr envelope?
Synthesis & Sound DesignA control envelope consisting of four stages: attack, decay, sustain and release. It describes how a parameter changes after a note is triggered, held and released.
A control envelope consisting of four stages: attack, decay, sustain and release. It describes how a parameter changes after a note is triggered, held and released.
An ADSR envelope is a control signal organized into attack, decay, sustain, and release. A note-on event normally begins the attack, the decay moves from the peak toward a held level, and note-off initiates the release. Applied to an amplifier, it shapes the level of a note; applied to filter cutoff, pitch, or another destination, the same contour shapes that parameter instead.
Attack, decay, and release normally describe durations or rates. Sustain normally specifies a level, not how long the note lasts. The performer or sequencer determines the held duration through the interval between note-on and note-off. Releasing a key during attack or decay can start release before the envelope ever reaches its sustain stage.
An ADSR diagram summarizes behavior rather than defining one exact circuit or algorithm. Segments may be linear, curved, or exponential-like, and some instruments specify rates rather than fixed times. Retriggering and legato settings can determine whether a new note starts a fresh envelope or continues an existing one. These details affect the sound even when two instruments display similar ADSR values.
The model starts from zero and normalizes the peak to 1. , , and are positive attack, decay, and release times in seconds; is a sustain level between 0 and 1. The first expression describes the envelope only while the note remains held. At note-off time , is the value reached at that instant, even if attack or decay is incomplete. The second expression then replaces the held contour and reaches zero after seconds. Real envelopes may use different curves, rate controls, starting levels, or retrigger behavior; zero-time segments require an instantaneous transition rather than division by zero.
Release time starts at note-off, not automatically at the end of decay. Sustain is usually a level rather than a fourth time setting. An ADSR is a modulation source, not an audio waveform by itself; its audible result depends on the destination, modulation amount, and the sound being controlled.