What does compression do, and why sidechain the bass to the kick?

·10 min read·Tytonic Audio

A compressor turns a sound down when it gets loud, so the loud and quiet parts sit closer together; whether that makes a mix louder depends almost entirely on the attack time. Sidechain compression turns the bass down each time the kick hits, because a kick and a sub at the same pitch reach the ear as one sound, and ducking the sub is what lets the kick through.

What a compressor does

A compressor measures the level of a signal and lowers its gain whenever the level is above a set point. Four settings decide what it does:

Threshold: the level above which it starts turning the signal down. Ratio: how much. At 3:1, a signal 9 dB over the threshold comes out 3 dB over it. Attack: how fast the gain comes down once the signal crosses the threshold. Release: how fast the gain comes back up once the signal falls again.

Turning the gain down never adds level by itself. Anything louder afterwards comes from the gain added after it ("makeup") or from the limiter at the end of the chain, which can now raise the whole mix further before the peaks hit the ceiling.

Why a compressed sound can seem louder

Loudness is not set by the highest sample. The ear adds sound energy up over a short window: a tone shorter than that window sounds quieter than a longer tone at the same level. Poulsen (1981) measured this with tone pulses from 5 to 640 ms and found a time constant of about 100 ms at levels well above threshold, and about 200 ms near threshold.

Peaks are short. A drum click lasts a few milliseconds, well inside that window, so it adds little to how loud the sound seems, but it still sets how far the track can be turned up before it clips. If the peaks come down and the body of the sound stays, the gap between peak and average (the crest factor) shrinks, and at the same peak level the track is louder. Loudness meters work the same way: ITU-R BS.1770, the standard behind LUFS, measures energy in 400 ms blocks, not peaks.

That only works if the compressor actually catches the peaks. That is the attack setting.

Attack decides what gets through

A slow attack lets the start of every note pass before the gain comes down. That is useful on drums, where the first few milliseconds are the punch. It also means the peaks are untouched, so a slow compressor evens out notes without making the track any louder at the same peak.

Tytonic ran its own compressor (the one the Tachyon mix uses on bass stems: 2.5:1, 150 ms release, at most 5 dB of reduction) on a test bass line whose notes vary in level by 12 dB, once with its normal 20 ms attack and once with a 1 ms attack. Each result was then set to the same peak, −1 dBFS, and measured:

Loudest minus quietest note Crest factor Loudness at a −1 dBFS peak
No compression 11.9 dB 8.5 dB −10.3 LUFS
20 ms attack 9.9 dB 9.2 dB −11.1 LUFS
1 ms attack 9.1 dB 7.3 dB −9.1 LUFS

Both settings evened the notes out by about 2–3 dB. Only the fast one made the line louder at the same peak, by 1.2 LU. The slow one made it 0.8 LU quieter: it turned down the body of each note while the note starts, the peaks, went through unchanged, so the crest factor grew.

The same thing on a kick drum. The figure below is how far the first 5 ms of each hit stands above the body of the hit (20–150 ms after it), through a 4:1 compressor:

First 5 ms over the body
No compression 8.0 dB
1 ms attack 10.7 dB
20 ms attack 13.0 dB

A 20 ms attack let the click through untouched while it turned the body down, so the hit got 5 dB more pointed. That is how a compressor adds punch, and it is the opposite of what makes a mix louder. Fast attack for level, slow attack for punch: the same knob does both jobs, in opposite directions.

Why the kick and the sub fight

The inner ear splits sound into overlapping frequency bands, called auditory filters. Two sounds inside the same filter are not heard as two separate things; they combine. Glasberg and Moore (1990) give the width of these filters as ERB = 24.7 × (4.37 F/1000 + 1) Hz. At 55 Hz that is about 31 Hz wide, so the filter around a 55 Hz sub spans roughly 40 to 70 Hz.

Kick drums in bass-heavy music are commonly tuned so their body ends in that same range; the test kick below sweeps from 150 Hz down to 50 Hz. When a kick lands on a held sub note, the two share one auditory filter, and the ear gets their sum. The kick's attack is partly buried in a sound that was already there at the same pitch. On the waveform the two also add up, so the loudest moments of the low end are where they overlap, and those moments set how far the mix can be turned up.

There is a timing effect on top. A loud sound makes quieter sounds just after it harder to hear. This is called forward masking, and it is strongest at low frequencies: Jesteadt, Bacon and Lehman (1982) measured it from 125 to 4000 Hz and found more forward masking at the lowest frequencies, shrinking steadily as the gap grows. So a short dip in the sub just after each kick, while the kick is at its loudest, falls where it is hardest to hear.

What sidechain compression does

A sidechain compressor listens to one signal and turns down another. Keyed from the kick, it lowers the sub and bass for a moment on every hit, then lets them back up before the next one. The kick gets the low end to itself for the part of the hit that matters, and the sub fills the rest of the beat.

The release decides how the dip sounds. Too short and the sub jumps back with an audible bump; too long and it never fully returns before the next kick, so the whole sub gets quieter. Setting the release in note lengths at the song's tempo keeps the dip inside the beat.

What Tytonic measured

Tytonic ran its own sidechain (the one in the Tachyon mix) on a test signal: a kick on every beat at 140 bpm, swept from 150 to 50 Hz, over a held 55 Hz sine sub. The duck had a 1 ms attack and an eighth-note release (214 ms at 140 bpm), at 4 dB (the engine's default for bass genres) and at 6 dB.

Duck Kick over sub, first 50 ms of each hit (30–120 Hz band) Sub level over the whole loop Peak of the kick + sub Loudness at a −1 dBFS peak
None 1.4 dB 0 dB reference −11.9 LUFS
4 dB 5.3 dB −3.0 dB 1.2 dB lower −12.3 LUFS
6 dB 7.2 dB −4.4 dB 1.7 dB lower −12.4 LUFS

What this shows:

The kick comes through. Without the duck, the kick's first 50 ms was only 1.4 dB above the sub in the low band. A 4 dB duck raised that to 5.3 dB, 3.9 dB more, without touching the kick. The low end peaks less. The loudest moments came down by 1.2 dB, because the sub is lowest exactly where the kick is loudest. It is not a loudness trick. At the same peak, the ducked loops measured 0.3–0.4 LU quieter, because the sub lost about 3–4 dB on average. What the duck buys is clarity in the low end, not level.

The method:

44.1 kHz, 16 s of signal. Synthetic test sounds only, no one's music. Compression and ducking are Tytonic's own engine code with its own settings (stem_compression bass role; sidechain_rule). Loudness is LUFS-I by ITU-R BS.1770 (pyloudnorm). "Kick over sub" is the RMS of each in a 30–120 Hz band over the 50 ms after every hit, averaged over the hits. Peaks are sample peaks. The measuring script is engine/tools/article_dynamics.py; anyone with the repository can run it again. In general Compress for evenness, limit for level. A compressor with a slow attack keeps notes consistent and keeps punch; the mix's final loudness comes from fast gain control at the end, where the peaks are caught. Pick the attack by what the first milliseconds are. On drums they are the punch; on a bass line they are mostly peaks that cost headroom. Duck whatever shares the kick's range. The sub and bass share its auditory filter; pads and leads overlap less and need much less, if any. Set the release to the tempo, and check that the sub fully returns between kicks. Judge it soloed and in the mix. A duck that pumps soloed can be hidden in the full track, and one you can't hear at all may still be doing its job on the kick.

How deep, how fast and on which parts depends on the track. That is the per-track work.

FAQ

Does sidechain compression make a track louder? Not by itself. In the measurement above, a 4 dB duck lowered the low end's peaks by 1.2 dB, but the sub lost about 3 dB on average, so at the same peak the loop measured 0.3 LU quieter. It makes the kick audible; loudness comes from the master.

What attack time should a compressor have? It depends on what the first milliseconds of the sound are for. On a test bass line, a 1 ms attack made it 1.2 LU louder at the same peak and a 20 ms attack made it 0.8 LU quieter. On a kick, a 20 ms attack made the hit 5 dB more pointed.

Why does my kick disappear when the bass plays? At low frequencies the ear's frequency bands are about 30 Hz wide. A kick and a sub both sitting around 40–70 Hz fall in the same band and reach the ear as one sound, so the kick's start is buried in a sub that was already there.

Should pads and leads be sidechained too? Less. They overlap the kick far less than the sub does. The Tachyon mix ducks them by 1.5 dB, against 4 dB for the sub and bass.

Is sidechain only for EDM? No. Any genre with a steady kick and a sustained bass in the same range has the same overlap. How deep the duck goes, and whether it should be heard as pumping, is a choice for the track.

Sources ITU-R BS.1770-5 (2023). Algorithms to measure audio programme loudness and true-peak audio level. International Telecommunication Union. https://www.itu.int/rec/R-REC-BS.1770-5-202311-I

Poulsen, T. (1981). "Loudness of tone pulses in a free field." Journal of the Acoustical Society of America 69(6), 1786–1790. https://orbit.dtu.dk/en/publications/4ac60f80-6a61-4eeb-8c95-6e08a2529b66

Glasberg, B. R. and Moore, B. C. J. (1990). "Derivation of auditory filter shapes from notched-noise data." Hearing Research 47(1–2), 103–138. https://doi.org/10.1016/0378-5955(90)90170-T

Jesteadt, W., Bacon, S. P. and Lehman, J. R. (1982). "Forward masking as a function of frequency, masker level, and signal delay." Journal of the Acoustical Society of America 71(4), 950–962. https://doi.org/10.1121/1.387576

Measurements: Tytonic's engine code, run on 2026-11-07 (engine/tools/article_dynamics.py).

Free score of your track: tytonic.org. The analysis is automated, by software our team built.