Compressor Attack and Release Explained
What threshold, ratio, attack, release, make-up gain and knee do, with the dB arithmetic worked out and a release time taken from the tempo.
A compressor turns the signal down when it passes a level you set, then lets the gain come back. Attack is how fast it turns down, and release is how fast the gain returns. Attack shapes the start of each note and release shapes the space between notes, and the release is the one you can set from the song's tempo. The BPM Delay Calculator lists release times for every beat division, and this guide covers the other half: what each control does, and what you hear when it is set too far.
What a compressor does
It reduces the amount by which a signal goes over a threshold. Everything below it passes unchanged. The gain reduction meter, which reads in dB, shows how far the compressor is pulling the level down at that moment.
Because the loud parts come down, the whole signal ends up quieter, and a make-up gain control lifts it back. The sections below take the six controls one at a time.
Threshold
Threshold is the level above which the compressor starts working. A lower threshold puts more of the signal over it.
- Set too high: almost nothing crosses it, the gain reduction meter barely moves and you hear no change.
- Set too low: nearly every note is compressed, the dynamics flatten, and a mix full of over-compressed tracks slowly loses its life.
Ratio, with the arithmetic
Ratio sets how firmly the compressor holds back what goes over the threshold. At 4:1, every 4 dB over the threshold at the input becomes 1 dB over at the output.
A worked case. The threshold is at -18 dB and a peak arrives at -6 dB, which is 12 dB over. At 4:1 the output is 12 divided by 4, which is 3 dB over, so the peak leaves at -15 dB. The compressor removed 12 minus 3, which is 9 dB. That 9 dB is what the gain reduction meter shows on that peak.
Add 9 dB of make-up gain and the peak is back at -6 dB, while everything under the threshold sits 9 dB higher than before.
- Set too low: overshoots are only nudged back, so a spike that jumps out of the mix still jumps out.
- Set too high: a ratio of 10:1 or more is generally treated as limiting, and too much ratio irons out the playing dynamics and leaves a part flat and lifeless.
The ratio is a different thing from the voltage ratio in the dB Calculator. Its dB and ratios block has a Decibels field and a Voltage ratio field, with a Ratio of switch between Voltage, pressure and Power. Type -9 in Decibels and it shows a voltage ratio of 0.3548. That is what 9 dB of gain reduction does to the signal's voltage, not the compressor's setting.
Attack
Attack is how long the compressor takes to start turning the level down after the signal crosses the threshold. It shapes the first moments of a note.
- Set too fast: the compressor clamps down on the transient and the hit loses its impact. Percussive bass sounds such as kick drums can seem to lose bass with attack times under about 50 ms, according to Sound On Sound. Very fast settings can also distort low notes, because the gain changes within a single waveform cycle.
- Set too slow: the start of the note slips through before the gain drops, so the transient stands out more against the sustain. A very short sound can pass a slow compressor almost untouched, even when it is well over the threshold.
One snare can end up with a softer transient, a more consistent level or a sharper transient, all from attack and release alone.
Release
Release is how long the gain takes to come back once the signal falls below the threshold. After the signal drops, the compressor keeps working for a time set by this control.
- Set too fast: the gain recovers while the sound is still ringing, so the tail of a drum hit is compressed less than its start and the transient is pushed down relative to the rest. With a fast attack as well, the gain can follow individual waveform cycles and add distortion.
- Set too slow: the gain has not fully come back when the next note arrives, so that note is turned down too. A busy part sounds as if its level sags and then slowly rises.
With a fast attack and a slower release, the gain reduction resets mostly between the hits. Each hit gets a similar level and the balance inside the hit barely changes.
Set the release from the tempo
The gain should be back before the next hit. At 90 BPM a quarter note lasts 666.67 ms. At 128 BPM it lasts 468.75 ms. That gap is the most time the release has, and a release that finishes in time has to be shorter.
The Compressor release on the grid card in the BPM Delay Calculator shows these as Release in ms for the tempo you set, with a Note column from 1/32 to 1/2 and a Straight and a Dotted column. Dotted is one and a half times straight. Click a value to copy the number alone.
At 90 BPM the card gives these figures.
- 1/16: 166.67 ms straight, 250.0 ms dotted
- 1/8: 333.33 ms straight, 500.0 ms dotted
- 1/4: 666.67 ms straight, 1000.0 ms dotted
At 128 BPM it gives these.
- 1/16: 117.19 ms straight, 175.78 ms dotted
- 1/8: 234.38 ms straight, 351.56 ms dotted
- 1/4: 468.75 ms straight, 703.13 ms dotted
For a part that hits on every beat, start with the 1/8 value, since it is half the gap, and watch the gain reduction meter. It should drop back toward zero before the next beat. If it is still pulling down when the next hit arrives, take the next shorter value. If the tail of each hit is not compressed enough, try the next longer one. The card says to pick the nearest step when the compressor has stepped release values. It gives no attack time, because attack depends on the sound and not on the grid.
The figure is a starting point, because there is no industry standard for exactly what a compressor's attack and release times measure. Two compressors set to the same number can recover at different speeds. The guide to delay and reverb times from tempo works the same card at 120 BPM, and how to find the BPM of a song covers getting the tempo right first.
Make-up gain
Make-up gain restores the level the compression took away. Set it by matching the loudness of the compressed and bypassed signal.
- Set too low: the compressed version is quieter and seems duller and weaker.
- Set too high: the compressed version is louder, and louder tends to sound better at first. That tempts people to add more compression than the job needs.
Knee
Knee decides how the compressor moves from below the threshold to above it. A hard knee switches on abruptly. A soft knee brings the ratio in gradually and reaches the set ratio only further over the threshold.
- Set too hard: at a high ratio the change at the threshold becomes audible, as a note suddenly gets squeezed.
- Set too soft: peaks just over the threshold are held back less than the ratio suggests.
Check the result with the meter
Drop the compressed export on the loudness meter and compare it with the original. Loudness range is shown in LU. It is the spread between the 10th and 95th percentile of the short-term values, so one or two loud notes barely move it, and compression across the whole part usually shrinks it. Make-up gain raises Integrated and Short-term max, so match the levels before you judge. The LUFS guide explains each reading.
Common mistakes
- Judging at different volumes. Level-match the compressed and bypassed signal first.
- Trusting preset names. A preset does not know your part.
- Using a release longer than the gap to the next hit.
- Setting the threshold so low that the meter never returns to zero.
- Reading loudness range on a clip shorter than a minute.
Sources
More guides
- How to Find the BPM of a Song
Tap the tempo, measure it from a loop of known length, check it against a click and settle half-time or double-time, with real numbers.
- Delay and Reverb Times From Tempo (BPM)
Turn a song's BPM into delay times, LFO rates, reverb pre-delay and decay, and compressor release, with one tempo worked all the way through.
- LUFS and Loudness Targets Explained
What LUFS, short-term loudness and true peak measure, what Spotify does to a loud master at playback, and the published targets with their sources.
- Tempo Markings and BPM: Largo to Presto
What Largo, Andante, Allegro and Presto mean in BPM, why the ranges differ by source, and how half-time and double-time let one song count as 70 or 140.