Dynamic Range Compression: Read Threshold, Ratio, Attack, and Release
A compressor reduces the level difference between quieter and louder parts. Threshold and ratio set how much reduction occurs; attack and release shape how quickly it starts and stops. Makeup gain raises the output afterward and needs a fresh peak check.
Dynamic range compression changes gain according to signal level to reduce the gap between loud and quiet parts. A compressor usually reduces signal above a threshold according to a ratio; optional makeup gain then raises the whole output. Threshold and ratio control the amount, while attack and release control how quickly compression engages and lets go.
Compression, limiting, and AGC
Dynamic range is the level difference between quiet and loud parts of a recording. Compression reduces that difference by lowering louder parts relative to quieter ones. Compression does not automatically make every part louder; makeup gain is a separate output adjustment.
A compressor reduces level differences by a chosen ratio. A limiter is commonly treated as a special form of compression that keeps peaks below a ceiling. Automatic gain control (AGC) automatically adjusts the gain in a recording path as input level changes. An AGC may include compression, but not every audio-editing compressor is an AGC.
Predict the output with threshold and ratio
The threshold is the level where compression begins. The ratio describes how much the level above threshold is reduced. For a simple hard-knee compressor, leave levels below threshold unchanged and divide the excess by the ratio:
Output level = threshold + (input level − threshold) / ratio
For example, with a −20 dBFS threshold and a 4:1 ratio, an input at −8 dBFS is 12 dB above threshold. One quarter of that excess, 3 dB, remains above threshold, so the output before makeup gain is −17 dBFS. An input at −30 dBFS stays at −30 dBFS in this simplified model. This is an arithmetic illustration, not a measurement of an audio file or plugin.
| Control | Meaning | What changing it does |
|---|---|---|
| Threshold | Level where compression begins | Lowering it brings more material into compression |
| Ratio | Reduction of level above threshold | A higher ratio reduces loud parts more |
| Knee | How smoothly compression transitions near threshold | A wider knee makes the transition more gradual |
| Makeup gain | Gain added to the whole output after compression | Raises overall level without changing the compression curve |
Audacity’s manual gives an example with a −10 dB threshold and 10:1 ratio: an input at 0 dB becomes −9 dB before makeup gain because 10 dB above threshold is reduced to 1 dB. That is the manual’s graph example. Audacity Compressor manual
Attack and release shape the timing
The static curve maps input level to target output level. Real audio changes over time, so compressors can smooth their response rather than react instantly.
**Attack** sets how quickly compression is applied after the input crosses threshold. A slower attack can let a brief peak pass before gain reduction; this may preserve or emphasize a transient.
**Release** sets how quickly compression lets go after the signal drops below threshold. Too short can make level changes or distortion more noticeable; too long can keep later, quieter sounds suppressed.
**Lookahead** uses processing delay to prepare for a loud input before it arrives. Support and latency vary by tool.
**Knee** controls whether compression starts abruptly near threshold or eases in. A soft knee is not the same as time-based attack and release.
Audacity notes that time smoothing can reduce distortion, but parameters interact: attack can allow temporary overshoot, and a long release can affect following audio. There is no one attack/release setting for every voice or instrument. Audacity smoothing parameters
A reversible adjustment workflow
Keep the original and define the issue: isolated loud peaks, or quieter speech that gets lost.
Work on a copy or with a non-destructive effect so you can return to the untreated recording.
Set threshold around the material you intend to reduce. Watch which sections cross it; do not lower it to control a few peaks if that compresses every sentence.
Raise the ratio gradually and listen to how much the loud section changes. The hard-knee equation is a simplified model; plugins may differ because of knee, detector, and timing.
Adjust attack and release while listening to consonant starts, transients, word endings, and gaps. Change one control at a time.
Check peaks again after makeup gain, since it raises the entire result and can cause clipping. Compare average level and peaks separately, and match playback loudness for a fair listening comparison.
Undo or ease the settings if speech sounds crushed, breaths or room noise jump forward, or pumping/distortion grows. If the level gap comes from microphone distance or recording conditions, improve the input rather than relying on compression alone.
Compression does not simply “make audio louder”; it changes the relationship between loud and quiet sounds. Moderate reduction on the intended material, with output headroom and natural dynamics checked, can make dialogue more consistent.
References
[Audacity Compressor](https://manual.audacityteam.org/man/compressor.html) — threshold, ratio, knee, makeup gain, and transfer curve.
[Audacity Compressor parameters: Smoothing](https://manual.audacityteam.org/man/compressor_parameters_smoothing.html) — timing behavior and examples for lookahead, attack, and release.