WaveStack is on the iOS App Store

Introduction to Sound Synthesis Time and dynamics

Envelopes

An envelope generator produces a control signal that rises and falls in a set shape each time it receives a gate. Sent to an amplifier, it makes the level of each note rise at the start and fall at the end over times that you set.

In the chapter on gates and triggers the gate switched an amplifier straight on and off, and every note began and ended with a click. An envelope generator sits between the gate and the amplifier. It receives the gate and produces a smooth control signal, which rises over a time you choose when the gate goes high and falls over a time you choose when the gate goes low.

The most common kind is the ADSR envelope, named after the initials of its four stages. Attack is the time the envelope takes to rise from zero to its peak once the gate goes high. Decay is the time it then takes to fall from the peak to the sustain level. Sustain is that level, which the envelope holds for as long as the gate stays high. Release is the time it takes to fall back to zero once the gate goes low. Attack, decay and release are lengths of time, set in milliseconds. Sustain is a level, given as a fraction of the peak, and it has no length of its own: the envelope stays there until the gate ends, whether that takes a tenth of a second or a minute.

An envelope generator

An ADSR envelope controls the level of a sawtooth. The upper plot shows the shape the settings describe, and the lower plot shows what the envelope did.

Type

Listen for Hold the gate and the sound rises, falls to the sustain level and stays there until you let go. Set a long attack and let go halfway through it: the release starts from wherever the level had reached, without going up to the peak first.

Where the shape came from

The four stages were settled in the mid-1960s. The composer Vladimir Ussachevsky, then head of the Columbia-Princeton Electronic Music Center in New York, asked Robert Moog, who was building some of the first commercial modular synthesisers, for an envelope with these four parts, and Moog built it as a module. Most synthesiser envelopes since have used the same four stages, sometimes with extra ones added.

AD envelopes

An AD envelope has only attack and decay. It runs both as soon as it receives a gate or a trigger and falls to zero at the end of the decay, whether the gate is still high or not. That suits sounds that die away on their own, such as drums and plucked strings, whose length does not depend on how long the gate stays high. Switch the tool to AD and the button becomes a trigger: the envelope runs the same attack and decay however long you hold it.

Straight lines and curves

The envelope here moves in straight lines. Most analogue envelope generators move in curves instead, because each stage charges or discharges a capacitor through a resistor, which produces a curve that moves fast at first and slows as it nears its target. The difference is easiest to hear in the release. The ear judges loudness on a roughly logarithmic scale, so a release that falls in a straight line sounds as if it stays loud for most of its length and then drops away quickly at the end. A curved release sounds like an even fade.

An envelope is a control signal

An envelope generator produces a control signal, and it changes the sound only when it is sent to a control input. In the tool above it is already connected to the control input of an amplifier, which raises and lowers the level of the sawtooth so that you can hear the shape. That amplifier is the subject of the chapter on the VCA.

Because the output is a control signal, it can go to any other setting that accepts one. Sent to a filter's cutoff it makes each note start bright and grow darker as the cutoff falls. Sent to an oscillator's pitch it makes the pitch of each note rise and fall in the shape of the envelope. Those uses are covered in envelopes as modulation.

Common questions

What does ADSR stand for?

ADSR stands for attack, decay, sustain and release, the four stages of the most common kind of envelope. Attack is the time to rise to the peak after a gate starts, decay is the time to fall from the peak to the sustain level, sustain is the level held while the gate stays high, and release is the time to fall back to zero after the gate ends.

Is sustain a time?

No. Sustain is a level, a fraction of the envelope's peak. The envelope holds that level for as long as the gate stays high, so how long the sustain lasts is set by the gate rather than by the envelope.

What is the difference between an AD and an ADSR envelope?

An AD envelope has only attack and decay. It runs both stages to the end as soon as it receives a gate or trigger, whatever the length of the gate, which suits sounds that die away on their own such as drums and plucks. An ADSR envelope holds its sustain level for as long as the gate is high and only releases when the gate ends.

Why does my envelope make no sound?

An envelope generator produces a control signal, which changes the sound only when it is sent to a control input. The usual destination is the level control of a VCA, which then raises and lowers the level of the audio passing through it in the shape of the envelope.

Who invented the ADSR envelope?

The four-stage envelope came out of a request from the composer Vladimir Ussachevsky, then head of the Columbia-Princeton Electronic Music Center, to the synthesiser designer Robert Moog in the mid-1960s. Moog built it as a module for his modular synthesiser, and the four stages have been standard since.

Published Updated Glossary