Adventures In Audio

How to set the shortest attack time in your compressor

There are two ways to approach setting the attack time of the compressor. One is to set a short attack time so that the compressor reacts quickly. The other is to intentionally set a long attack time so that the initial transients of notes or drum hits get through uncompressed. Either can be useful depending on what you want to hear.

Here I will concentrate on setting a short attack time.

The question is, how short is short?

How short is short?

Well this has to be considered with respect to the period of the audio waveform. The period is the time taken for one complete cycle and is the inverse of frequency. So a frequency of 1000 Hz has a period of 1 millisecond. A frequency of 20 Hz has the period 50 milliseconds; 20 kHz has the period 50 microseconds.

Now look at this compressor...

Compressor

The longest available attack time is 300 milliseconds, the shortest is 10 microseconds.

So suppose you want to compress a sine wave of frequency 20 Hz. An odd thing to want to do perhaps, but useful as an illustration.

The period of this sine wave is 50 milliseconds. So if you set an attack time of 50 milliseconds or less, then the compressor will react within one cycle of the waveform. This will change the shape of the sine wave leading to distortion. Actually 50 milliseconds isn't a hard and fast barrier. There will be distortion above 50 milliseconds, and it will get worse the shorter the attack time gets. This will depend to an extent on the individual compressor and how fast the attack accelerates.

Reality

Let's link this to reality... The frequency of the lowest string of a conventional bass guitar is 42 Hz. This corresponds to a period of roughly 24 milliseconds. So if you're compressing bass guitar and you set an attack time of anything less than around 30 milliseconds you can expect distortion on the very lowest notes. Again, the shorter the attack, the more distortion you'll hear.

So if we take 40 Hz or so as the lowest frequency of interest in our music, even though a kick drum will probably go lower, then we can consider 30 milliseconds to be the shortest safe attack time for anything. You can judge the kick drum on its merits - a little distortion probably won't do it much harm. We'll round up that 30 milliseconds to 50 to be completely safe.

But often you will be compressing a vocal or an instrument that doesn't go anywhere near 40 Hz. In this case you can try for a shorter attack, if it works to the benefit of your sound.

Action

So start at 50 milliseconds and work down. At some point you will hear distortion and you can back off to a safe attack time. If you don't hear distortion, well it's still happening but it's masked by the signal. In this case the ancient rule of 'if it sounds good then it is good' should apply.

Main image credit: Pedronchi CC BY 2.0

Thursday May 26, 2022

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