Music Music Production Simulation

Squash a drum and bass loop with a real compressor and watch the waveform, gain reduction and transfer curve.

Presets

Controls

Readouts

Independent check

...
The science

Decibels. Level in dBFS is 20 log10(|x|); each 6 dB doubles the amplitude. Crest factor is peak minus RMS level in dB: a drum loop has a high crest factor, and compression lowers it so the track can be made louder without clipping.

Compressor. Above the threshold T, every R dB of input gives only 1 dB of output: y = T + (x - T)/R. Around T a soft knee of width K blends the two lines with the quadratic y = x + (1/R - 1)(x - T + K/2)²/(2K). The gain reduction is smoothed by an attack time (how fast gain falls) and a release time (how fast it recovers): a step in input reaches 1 - 1/e = 63 % of its final gain reduction after one attack time constant. Make-up gain then restores the overall loudness.

Check. A constant input is compressed to the analytic static-curve value, and the step response is compared with 1 - 1/e; both are in the "Independent check" box.

Honest limits: a feed-forward peak compressor with a 5 ms peak-hold level detector; the make-up gain can push peaks past 0 dBFS (shown in red: digital clipping, which a real mastering chain would stop with a look-ahead limiter). The test loop is synthesised, loudness is not LUFS-weighted, and there is no EQ, reverb or stereo. Sound needs a click first (browser autoplay rule).