Envelopes (ADSR)

An oscillator on its own just drones at one level forever. An envelope gives every note a shape: how fast it starts, how it settles, and how long it rings after you let go. Change the envelope and the same waveform becomes a pluck, a pad, an organ or a bass.

What is an Envelope?

An envelope is a shape that changes a setting over the life of one note. It starts when a key goes down (the note on) and finishes after the key comes up (the note off). Each new note restarts it.

The most common envelope has four stages, called ADSR:

Common mistake

Sustain is the odd one out. Attack, decay and release are measured in milliseconds or seconds. Sustain is measured as a level (0–100%, or in dB). A sustain of 0% does not mean "no sustain stage", it means the sound decays all the way to silence while you still hold the key.

The ADSR shape

level 100% | /\ | / \ S | / \_____________ | / \ 0% |/ \______ +--A--+-D-+------S------+--R--+→ time key down key up

The attack and decay happen right after the key goes down. The sound then sits at the sustain level until the key comes up, and the release starts from wherever the level is at that moment.

Hearing ADSR

The demo below starts on a pluck setting: a very fast attack, a short decay and a sustain of zero. Hold a key down. Notice that the sound fades away even though you are still holding it. That is what sustain 0% does.

Now compare a pad. The attack is slow (around 800 ms), the sustain is high and the release is long. Tap a key quickly and you'll barely hear it, because the attack never gets a chance to finish.

Note

A very short attack or release (under about 2 ms) on a sustained sound can cause a click. The waveform jumps instantly from silence to full level, and that sudden jump contains a burst of high frequencies. If you hear clicks at the start or end of notes, add 2–10 ms of attack or release.

Envelope Shapes for Common Sounds

Real instruments have recognizable envelopes. A piano note is loudest at the strike and then decays. A violin can swell in slowly. Copying these shapes is the quickest way to make a synth sound "like" something. Use this table as a starting point and adjust by ear.

SoundAttackDecaySustainReleaseWhy it works
Pluck0–5 ms150–400 ms0%100–300 msInstant hit that dies away, like a plucked string
Pad300 ms–2 s500 ms–1 s70–90%1–3 sFades in and out smoothly, so chords blend into each other
Organ1–5 ms0–50 ms100%10–50 msFull level the whole time the key is held, stops almost instantly
Brass30–100 ms150–300 ms60–80%100–200 msA short swell into the note, like a player pushing air
Swell / reverse1–3 s0–100 ms100%500 ms–1 sBuilds slowly, great for transitions and ambient beds
Bass0–5 ms150–400 ms50–80%30–80 msPunchy start, steady body, short tail so notes don't smear together
Producer tip

Release time affects your mix, not just the sound. A long release on a bass makes each note overlap the next one, which muddies the low end. Keep bass releases short (under about 100 ms) and save long releases for pads and leads that sit higher up.

Amp, Filter & Pitch Envelopes

An envelope is just a control shape. You can point it at any setting. Most synths give you at least two envelopes, and many let you assign more.

Amp envelope

The amp envelope controls volume. It is the one you have been using above, and every synth has one. It decides whether a sound is short or long, soft or punchy.

Filter envelope

The filter envelope moves the filter cutoff during the note. The envelope amount (sometimes called depth or env mod) sets how far it moves. With a low cutoff, a fast attack and a short decay, the filter opens wide for a moment and then closes. You hear a bright "pew" or "bow" at the start of each note. This is the classic sound of the Roland TB-303 acid bass and of most synth plucks.

Some synths allow a negative amount. The cutoff then drops at note-on and rises back up, which gives a darker, "backwards" movement. See Filters for how cutoff and resonance work.

Pluck = amp envelope + filter envelope

Oscillator: Saw Filter cutoff: 400 Hz, resonance 25% Filter env: A 0 ms D 250 ms S 0% R 200 ms amount +60% Amp env: A 1 ms D 300 ms S 0% R 200 ms

The filter envelope makes each note bright at the start and dark at the end. The amp envelope makes the note fade. Together they sound much more like a real plucked string than either one alone.

Pitch envelope

The pitch envelope bends the pitch during the note. Short pitch envelopes are everywhere in electronic drums. A synthesized kick drum is usually a sine wave that starts high and drops quickly:

Kick drum pitch envelope

Oscillator: Sine Pitch: starts around 150–200 Hz drops to about 45–55 Hz in 30–120 ms Amp env: A 0 ms D 300–600 ms S 0% R 50 ms

The fast pitch drop is heard as the "click" or "punch" of the kick. The low tail is the body. A longer pitch drop sounds like a booming 808. A very short one sounds tight and clicky, like techno. You'll build this from scratch in Sound Design Recipes.

Other uses: a few semitones of pitch drop on a lead adds a "zap" to the start of each note, and a slow upward pitch envelope on noise makes a riser.

Envelope Curves: Linear vs Exponential

Each stage of an envelope follows a curve. Some synths let you bend it.

Our ears hear loudness on a roughly logarithmic scale. Because of that, a linear decay tends to sound like it hangs at full volume and then drops off suddenly at the end. An exponential decay sounds smooth and natural, because real sounds (a plucked string, a struck drum) fade this way. Analog synth envelopes are built from charging and discharging capacitors, so their curves are naturally exponential-shaped. That is part of why vintage envelopes are often described as "snappy".

CurveSounds likeGood for
Linear attackEven, gradual fade-inPads, swells
Exponential decayFast drop, then a long gentle tailPlucks, drums, pianos, snappy basses
Linear decay/releaseHolds, then cuts off near the endGated effects, some 808 tails

Extra stages

Many synths add stages to the basic four. Hold (AHDSR) keeps the level at its peak for a set time before the decay starts, which helps drums and plucks punch. Delay (DAHDSR) waits a set time before the attack begins, which is handy for an envelope that only kicks in on long notes.

Velocity & Envelopes

Velocity is how hard you hit a key, sent as a number from 1 to 127 (see MIDI). Routing velocity to an envelope makes a synth feel alive, because soft and hard notes behave differently.

Try it in your DAW
  1. Load your DAW's stock synth on a new MIDI track [Ableton: Analog or Drift; FL Studio: 3x Osc or FLEX; Logic: Retro Synth or ES2] and pick an init or default patch.
  2. Set oscillator 1 to a saw wave. Program a four-note chord, each note 1 bar long, at 120 BPM.
  3. Make it a pad: amp attack about 800 ms, decay 500 ms, sustain 80%, release 1.5 s. Play it back.
  4. Make it an organ: attack 2 ms, sustain 100%, release 20 ms. Notice how chord changes become abrupt.
  5. Make it a pluck: attack 1 ms, decay 300 ms, sustain 0%, release 200 ms. Change the notes to 1/8 notes.
  6. Now lower the filter cutoff to around 500 Hz and raise the filter envelope amount. Copy the amp envelope settings to the filter envelope and compare the pluck before and after.
  7. Finally, map velocity to filter envelope amount (look in the synth's modulation or velocity section). Draw some notes at velocity 40 and some at 120 and listen.
Producer tip

Compressors and gates also have attack and release controls. The idea is the same: how fast the effect reacts and how fast it lets go. Once ADSR feels natural, Compression will be much easier to understand.

The four stages of a basic envelope are attack, , sustain and .

Sustain is measured as a , not a time.

A synthesized kick is usually a wave with a fast downward envelope.

Next, learn how to add movement that repeats over time in LFOs & Modulation.

1. You hold a key down, but the note fades to silence anyway. Which setting causes this?

  1. A long attack
  2. A long release
  3. A sustain of 0%
  4. A short attack

With sustain at 0%, the decay stage falls all the way to silence while the key is still held. That's the classic pluck shape.

2. Which envelope fits a soft, slow-moving pad best?

  1. A 1 ms, D 100 ms, S 0%, R 50 ms
  2. A 2 ms, D 0 ms, S 100%, R 20 ms
  3. A 5 ms, D 300 ms, S 70%, R 50 ms
  4. A 900 ms, D 600 ms, S 80%, R 2 s

Pads need a slow attack and long release so chords fade in and blend into each other.

3. What does a filter envelope with a fast decay and a low cutoff produce?

  1. A bright "pew" at the start of each note that quickly darkens
  2. A slow vibrato
  3. A louder note
  4. A stereo widening effect

The envelope opens the filter for a moment, then closes it. That bright-to-dark movement is the sound of plucks and acid basses.

4. Why do exponential decays usually sound more natural than linear ones?

  1. They use less CPU
  2. They are always longer
  3. They add harmonics
  4. Real sounds fade that way, and our ears hear loudness on a roughly logarithmic scale

A linear fade sounds like it hangs and then drops suddenly. An exponential fade matches how strings and drums actually die away.

5. You hear a click at the start of every note on a sustained synth. What is the simplest fix?

  1. Raise the sustain
  2. Lengthen the attack to a few milliseconds
  3. Turn up the resonance
  4. Shorten the release to 0 ms

An attack near 0 ms makes the waveform jump instantly, which clicks. 2–10 ms of attack smooths it out without making the sound feel slow.