Author Topic: Understanding Compression  (Read 47810 times)

mixengineer

  • Subsonic
  • Posts: 10
  • Honor: 3
    • View Profile
Re: Understanding Compression
« Reply #15 on: January 06, 2016, 09:08:29 pm »
There is some mis-information being spread here.

The easiest way to think about a compressor is (as has been mentioned) a robot on the fader.  It is simply adjusting the fader level depending on what it's listening to (the detection circuit) and the control parameters you're giving it.

Some things to take note of.  Once a signal crosses a boundary (depends on threshold as well as knee settings) the compressor is constantly attacking and releasing (how it does this depends on compressor design and attack/release settings - this is partly what gives each compressor its unique sound).   The attack time is how long it takes for the compressor to reach around .707 (or approx 2/3rds) of the targeted gain reduction.  Release is the opposite of this (how long it takes to restore that gain reduction that has been applied).  An easy way to think about the ratio is if you imagine a rubber band with the signal pushing over the threshold into it.   The tighter you make that rubber band, the harder the input signal will have to "push" against it to see changes on the output.

Hope that helps clear up some of the confusion which often surrounds this topic.
« Last Edit: January 06, 2016, 09:11:15 pm by mixengineer »

Murtagh

  • Subsonic
  • Posts: 8
  • Honor: 0
    • www.soundcloud.com/murtaghmusic
    • View Profile
Re: Understanding Compression
« Reply #16 on: January 06, 2016, 09:42:54 pm »


Some things to take note of.  Once a signal crosses a boundary (depends on threshold as well as knee settings) the compressor is constantly attacking and releasing


.. given that the input signal drops below the threshold at some point, right? I don't see why a compressor would just constantly attack and release if the signal stays above the threshold, in this case shouldn't it only attack and release at the beginning and when the signal drops below the threshold?

mixengineer

  • Subsonic
  • Posts: 10
  • Honor: 3
    • View Profile
Re: Understanding Compression
« Reply #17 on: January 06, 2016, 09:50:27 pm »
.. given that the input signal drops below the threshold at some point, right? I don't see why a compressor would just constantly attack and release if the signal stays above the threshold, in this case shouldn't it only attack and release at the beginning and when the signal drops below the threshold?

In a word - no.  A compressor is constantly "riding the fader" once that signal has crossed the threshold.  You can see this in action on gain reduction meters as they will be constantly reacting to the signal which is above the threshold.

Murtagh

  • Subsonic
  • Posts: 8
  • Honor: 0
    • www.soundcloud.com/murtaghmusic
    • View Profile
Re: Understanding Compression
« Reply #18 on: January 06, 2016, 10:10:50 pm »
.. given that the input signal drops below the threshold at some point, right? I don't see why a compressor would just constantly attack and release if the signal stays above the threshold, in this case shouldn't it only attack and release at the beginning and when the signal drops below the threshold?

In a word - no.  A compressor is constantly "riding the fader" once that signal has crossed the threshold.  You can see this in action on gain reduction meters as they will be constantly reacting to the signal which is above the threshold.

Interesting, would you mind expanding on this?

What I am thinking is that if you consider this screenshot http://prntscr.com/9my219, and imagine the red line is the threshold, then the compressor will attack/release at the black lines intersection with the signal (even though this happens over the course of about 40ms?). Apologies for the inaccuracy in the screenshot because I just zoomed in as far as FL goes, obviously in audacity where I could zoom in further this process would happen many times in the initial few ms of the sample.

If that's the case then I can certainly imagine it being triggered multiple times in an incredibly short duration/'constantly'

Cheers

mixengineer

  • Subsonic
  • Posts: 10
  • Honor: 3
    • View Profile
Re: Understanding Compression
« Reply #19 on: January 06, 2016, 10:42:35 pm »
I think you might be starting to confuse yourself.  In your example, below the black lines (or threshold) is the boundary where no gain reduction will occur however as soon as that boundary has been crossed then attack/release phases come into play.

Let me try and explain it another way and we'll take an imaginary "perfect" compressor as our basis with some tone values.

We'll use a sine tone @ -12dB FS with a compressor set with a threshold of -18dB FS and a 2:1 ratio (we'll ignore attack/release values for the moment).  As soon as that sine wave crosses the threshold the detection circuit will "hear" that the signal is too loud and instruct the gain reduction circuit to start working.  How quickly it does this is related to our attack setting (and compressor design!).  Our channel output level (post compressor) should now read -15dB FS as we're applying 3dB of gain reduction (6dB over threshold with a 2:1 ratio) and it should be steady once the attack phase is complete (and it's only steady because the input level is not varying).

If we now increase the gain of the sine wave tone to -6dB FS the attack phase will begin again (remember at this point we have not dropped below the set compressor threshold).  Our output should now be -12dB FS as we're applying 6dB of gain reduction (we're now 12dB over threshold with a 2:1 ratio).

If we now decrease the sine wave tone back to -12dB FS the release phase will start, and if we drop it even further back it will continue to release until no gain reduction is taking place and we're below the threshold again.

If you extrapolate that to a musical signal which is constantly varying the amount of signal over threshold then you can see how as soon as you cross that boundary into gain reduction then the circuit is constantly attacking and releasing depending on detection circuit and attack/release settings.

Hope that makes things clearer for you.
« Last Edit: January 06, 2016, 10:45:57 pm by mixengineer »

Murtagh

  • Subsonic
  • Posts: 8
  • Honor: 0
    • www.soundcloud.com/murtaghmusic
    • View Profile
Re: Understanding Compression
« Reply #20 on: January 07, 2016, 12:00:02 am »
I understand that, I was very unclear with my question, thanks for the exposition.

phatscout

  • Sub Bass
  • *
  • Posts: 23
  • Honor: 1
    • phatscout
    • phatscout
    • View Profile
Re: Understanding Compression
« Reply #21 on: January 07, 2016, 12:24:49 am »
Ay http://www.dnbscene.com/article/1474-compress-to-impress-a-complete-compression-tutorial

It's four parts and kinda wordy at times but it does a good job explaining it from a conceptual point of view for someone who's new to compression. Obviously if you already know your stuff this isn't all that useful but it's still an oldie but a goodie.
« Last Edit: January 07, 2016, 12:27:10 am by phatscout »

Red X

  • Sub Bass
  • *
  • Posts: 69
  • Honor: 4
  • Hi
    • Jeremy-Pompa-1
    • EDM_4U
    • View Profile
Re: Understanding Compression
« Reply #22 on: January 07, 2016, 02:32:27 am »
I want to get my track mix and mastered now to see how big of a difference it would make but this thread has helped alot!

Axis

  • Sub Bass
  • *
  • Posts: 34
  • Honor: 11
    • axis
    • AxisMusik
    • View Profile
    • Facebook
Re: Understanding Compression
« Reply #23 on: January 07, 2016, 07:59:07 pm »
Wow, it's really surprising that so many people (including engineers) don't understand how the attack and release settings work!  I was 100% sure I knew exactly how this works, but this thread changed everything, lol!  Very useful information!

Once a signal crosses a boundary (depends on threshold as well as knee settings) the compressor is constantly attacking and releasing (how it does this depends on compressor design and attack/release settings - this is partly what gives each compressor its unique sound).

I wouldn't say it is "constantly attacking and releasing", but only when the input signal level changes.  In other words, if it's not changing, there's no attack and release.  If it goes up, the attack comes into play, and if it goes down, the release comes into play.  I hope this is correct.

mixengineer

  • Subsonic
  • Posts: 10
  • Honor: 3
    • View Profile
Re: Understanding Compression
« Reply #24 on: January 07, 2016, 08:47:50 pm »
It is constantly attacking and releasing as the level over threshold varies which is what happens in a musical context.  On a purely technical level, if you have a steady state signal over threshold it will reach a constant state of gain reduction after the attack phase is complete, provided your attack and release settings aren't so short that it starts to track the waveform (one reason why it's not recommended to use very fast attack/release settings on low frequency content).  One might question the reasoning behind applying compression to a steady state signal though ;)
« Last Edit: January 07, 2016, 11:04:55 pm by mixengineer »

manducator

  • Low Mid
  • **
  • Posts: 236
  • Honor: 46
    • manducator
    • View Profile
Re: Understanding Compression
« Reply #25 on: January 13, 2016, 10:55:00 am »
This comes from the book 'Mixing with your mind' from Mike Stavrou. Is the best text I have ever read on compression:

This chapter about compressors of the book "Mixing with your mind" by Mike Starvou is highly regarded and praised to learn how to use a comp. Here it is:


It's Like Cracking a Safe

Compressors have four basic knobs (parameters) and the key to classy compression is as simple as the order in which you reach out and focus on adjusting those knobs. When you get the sequence right, you'll hear more clearly the effect of each parameter - thereby arriving at a truer and more musical setting.

The compressor's combination lock has four tumblers. Adjusting them in a special order also prevents you from returning to a previously adjusted control. Don't you hate it when you are happy with the Release time until you fiddle with the Attack? They affect each other when adjusted randomly or out-of-sequence. Chasing your tail is about to become a thing of the past. Like cracking any combination lock, once a tumbler falls into place, you need not return to it. Each step represents decisive progress.

Getting started (temporary settings)

To crack this combination, you will need to set all the controls to a temporary setting while you focus on one parameter at a time. Once the first one is set, that tumbler falls in place, leaving three more to crack. Focus on the next one - listen - adjust - and tumbler number two falls into place and so forth. Approach this safe-cracking exercise in a different order and you will arrive at a different result.

* Attack to anywhere
* Release to minimum
* Ratio to maximum
* Threshold to sensitive

1. Attack

The first thing you do is set the ratio to as high as it'll go - 20:1, infinity... the highest you've got. Next set the release time to as fast as it'll go - which, admittedly, is faster than you'd ever want it. Then, drive the audio into the unit, either by lowering the Threshold or increasing the input (depends on the unit), and listen while you adjust the only the Attack time.

Listen to the Attack - the leading edge of the sound - while rolling the Attack knob. Try to ignore the horrible pumping caused by the after effects of the fast Release - just listen to the Attack. (The ultra-fast Release lets you hear far more individual attacks than a slow setting.)

Listen to the front edge of the sound. Notice how the Attack knob affects the size of the hit. So, if it's a snare drum that you are compressing, and the Attack is on a fast setting, it's as though the drumstick is really skinny.

Alternatively, if the Attack is on a slow setting, it's as if the stick is much thicker. Likewise, if it's an acoustic guitar and the Attack is on a fast setting, you're just hearing the finger nail come through as it hits the string; while if the Attack is slow, you might get the whole strum through - the entire transient bypasses the compressor. So, forget all the after effects, just listen to the thickness of the Attack until it's "tasty" - you might want it thin, you might want it thick, just think aesthetics. And then, because the ratio is so high and the release is so fast, you'll be able to hear the affect of the Attack time much clearer than if they were on any other setting. This technique effectively "turns your ears up" to heighten your perception of the Attack time control.

2. Release


The second step is to play with the Release time. "Release" controls the speed at which the sound glides back at you after being punched away. The trick is to get that speed to become a musical component of the sound. You might ask, "Do you mean in time with the music?" or "With fast music do I set faster than I would for a slow ballad?" Perhaps, but certainly don't think, "I want it fast because I want to compress the crap out of this" - don't do that. In fact, make it as slow as you can, so the compression envelope bounces back to reinforce or establish the groove of the music. Remember, any dynamic movement in a song affects the groove, and compressor/limiters are no exception. (Whether the Singer is moving back and forth from their mic, or you're madly wiggling a fader, or a compressor is pushing and pulling on a sound, the groove is at risk of being enhanced or destroyed by dynamic movement.) So, don't set your Release to a fast setting just because you want to hear something buried behind the sound. Forget that. There are bigger fish to fry. You're already compressing a little bit, so the background sounds will come forward anyway. Instead, you want to think, "How slow can I get it while maintaining some control?", because the power in the groove is really a slower-moving, subliminal yet powerful wave - it's not an ultra-fast thing that's there to crunch your sound. Even in a frantically fast-paced tune, a slower, subliminal undercurrent carries most of the power. For example, you might have it so slow by the time the next hit comes along it's not quite fully released. But that's okay. A formulaic approach might intellectually tell you that it has to be fully released before the next hit, but that's more math and less groove.

Listen to the Release. Feel the way it glides or bounces back at you and there will be a point where you sense this bounce-back is kind of like a swing -almost like someone is swinging from a rope in a tyre in groove with the tune. It doesn't have to be perfectly in time, because a groove - as anyone who teaches music will tell you - should keep time, but not necessarily play the time.
Never play the metronome. Never play the conductor's baton. So, don't just make it a quarter of a beat or whatever, just look for that groove, and that's your release time. Make the rush of the Release a musical component that pushes you into the next beat without pre-empting the beat. Let the musician hit you while the pressure is still rising instead of letting the compressor finish its swing - dead air - lifeless moment... no good, Allow the compressor to push the sound towards you until the music makes it's next statement.

If, however, all you care about is maximum volume (no matter how detrimental to the groove that might be), then ignore this last paragraph and set the Release to "maximum irritation"! But I must add that if you aim to make the product likeable (extremely groovy, for example), the wrist of the listener will always turn up the volume for you more effectively than any brick wall compression ever could.

3. Ratio

At this point, the Ratio is set to maximum, so it's going to sound over compressed. So the next job is to take the Ratio and lower it as much as you can without losing the effects you created with your Attack and Release settings.

Think of the Ratio control a bit like a telephoto lens - the higher the Ratio, the smaller the sound is - although it will be more controlled. The lower the Ratio - as in 2:1(given the same output voltage), aesthetically feels like a larger image. So, the lower the Ratio the bigger it is - but at the risk of getting out of control. Meanwhile, the higher the Ratio, the smaller it is - although more contained. The idea is usually to try and make it sound big, but in control. So, bring down the Ratio, then when you don't hear the effects that you like - the thickness of the stick, the groove you created with the Release time - you can raise the Ratio a little, all the time focussing on size. At this stage, don't think about Ratio in terms of numbers - just about size and firmness of the sound. You know how I often talk about "firmness' and "Hardness Factors"? Well, as you raise the Ratio, the sound will become firmer (and smaller) as as you lower the Ratio it becomes softer(but bigger). So you might want to think along the lines of: "How firm do I want this?"


4. Threshold

The last thing you adjust is the Threshold. It's important to turn the Threshold knob so that it's not compressing all the time. The right setting will see dynamic movement coming to rest at special moments - otherwise you get a flatter, more lifeless sound.

Having uncompressed sound emerging from the processor at appropriate musical moments adds colour and contrast to the sound. For example, permitting the dynamic movement to come to rest in some quieter moments allows that moment to attain a momentary, bigger, 1:1 presence, and prevents it from rushing towards the listener with unwanted noise. It's sad enough that the little quiet moments are small without being squashed smaller still due to high compression ratios. Each time the sound comes up for air, so to speak it attains a sense of reality - a 1:1 ratio.

WARNING!
Most engineers do not realise that Ratios are multiplicative, not additive. If you compress your mix 10:1 and then the mastering engineer compresses it at 10:1 you effectively achieve, not a 20:1 but a 100:1 texture. Ouch! Consider yourself warned. This applies to all compression. If you compress a voice during recording at 10:1 and then in the mix again at 4:1 you don't get 14:1 but 40:1. Next time you mix consider the ratios likely to be used at the radio stations that provide the finishing touch. Ask yourself, "How small a sound can I bear to hear On the Air?"

That Very Expensive Sound
If you follow these steps, set your compressor to the settings in the illustrations, and follow the path of the Yellow Knob Road, then by the time you get to this point in the article you'll have a big and bouncy, firm but flexible, juicy and slippery groovy sound. Or as some would say, "a more expensive sound".

Mike Stavrou

Mussar

  • Administrator
  • Mid
  • *****
  • Posts: 631
  • Honor: 252
    • mussarmusic
    • mussarmusic
    • View Profile
    • My Site
Re: Understanding Compression
« Reply #26 on: January 13, 2016, 04:02:36 pm »
To expand on what has already been said, it's often better to have 2 or 3 small compressors working gently in sequence than to have one compressor slamming the hell out of your audio. Gentler ratios, gentler thresholds, and overall a lighter touch can multiply together to achieve the same effects while preserving much more of your original sound.