Adventures In Audio

What is the math behind audio compression?

On your compressor you will see a 'ratio' control calibrated 2:1, 3:1, 4:1 etc. What does this math mean?

Compressor ratio control

Audio levels are measured in decibels. To be more correct, the levels of two audio signals can be compared in decibels. One signal, for instance, could be ten decibels (10 dB) louder than another. Or there could be a single signal and you raise it in level by 10 dB.

A difference or change in level of 1 dB is hardly noticeable to most people. 3 dB should be just noticeable to most people, and obvious to audio experts. 10 dB is a significant change. 20 dB is a big change.

A real-world example

If a vocal recording, for instance, is mostly quiet during the verse of a song, then rises in level during the chorus this can create the problem that it is too quiet during the verse and too loud during the chorus. Or you could set it so that it is just right during the verse, but then it is way too loud in the chorus. Or you could set it so that it is just right in the chorus, but way too quiet in the verse.

Let's suppose that the vocal is around 12 dB louder in the chorus than the verse...

Setting the ratio control of the compressor

If you set the ratio control to 2:1, this means that for every 2 dB the input signal level rises (above the threshold setting, but that's another explanation for another day), the output signal from the compressor will rise only 1 dB.

So in this case the level of the vocal would rise by only 6 dB during the chorus, rather than the original 12 dB.

This might work, or you might need more compression.

So set the ratio to 3:1. Now for every 3 dB the input signal rises, the output signal from the compressor will rise only 1 dB.

So the chorus will be 4 dB louder than the verse.

One more example... Set the ratio to 4:1. Now for every 4 dB the input signal rises, the output signal from the compressor will rise only 1 dB.

So the chorus will be 3 dB louder than the verse. This might work - the chorus is often louder than the verse. Or you could raise the compression ratio further to control the level even more strictly.

4:1 is a useful compression ratio for vocals. 10:1 would be quite a lot of compression. 20:1 would be extreme, but don't be afraid to use any ratio that you think helps the song.

Summary

The math is simple. With a 2:1 ratio, when the input level rises by 2 dB, the output will rise by 1 dB.

Saturday August 31, 2019

Like, follow, and comment on this article at Facebook, Twitter, Reddit, Instagram or the social network of your choice.

David Mellor

David Mellor

David Mellor is CEO and Course Director of Audio Masterclass. David has designed courses in audio education and training since 1986 and is the publisher and principal writer of Adventures In Audio.

Audiophiles - You're wasting your money!

Audiophiles - You're wasting your money!

Watch on YouTube...

If you can't hear this then you're not an audiophile

If you can't hear this then you're not an audiophile

Watch on YouTube...

CD vs. 24-bit streaming - Sound of the past vs. sound of the future

CD vs. 24-bit streaming - Sound of the past vs. sound of the future

Watch on YouTube...

The Vinyl Revival - So wrong on so many levels

The Vinyl Revival - So wrong on so many levels

Watch on YouTube...

More from Adventures In Audio...

Get VU meters in your system and in your life [Fosi Audio LC30]

Is this the world's most diabolically expensive DAC? [iFi Diablo 2]

A tiny amplifier with a weird switch in a strange place

Will this DAC/headphone-amp dongle work with *your* phone? [Fosi Audio DS2]

When is a tube power amp not a tube power amp? - Aiyima T9 review

I test the Verum 1 Planar Magnetic headphones for listening and production

Your power amp is average - Here's why

Adding tube warmth with the Freqtube FT-1 - Audio demonstration

Adding tubes to a synth track with Freqport Freqtube

The tiny amp that does (nearly) everything

Can I unmix this track?

Why you need a mono amp in your system - Fosi Audio ZA3 review

Can you get great earbud bass with Soundpeats AIR4 Pro?

24 bits or 96 kHz? Which makes most difference?

16-bit vs. 24-bit - Less noise or more detail?

Are these earphones REALLY lossless? Questyle NHB12

Could this be your first oscilloscope? FNIRSI DSO-TC3

OneOdio Monitor 60 Hi-Res wired headphones full review

Watch me rebuild my studio with the FlexiSpot E7 Pro standing desk

Can a tiny box do all this? Testing the Fosi Audio SK01 headphone amp, preamp, EQ

Hi-Fi comfort OVER your ears? TRUEFREE O1 detailed review

Get the tube sound in your system with the Fosi Audio P3

Any studio you like, any listening room you like - For producers and audiophiles

Hidden Hi-Fi - The equipment you never knew you *didn't* need - Fosi Audio N3