Audio Compression

Compression – manipulating the dynamic range

 

Compression is often used to control the dynamics of an audio signal. One can look at it like a automated volume rider. The use of compressors in digital audio can also be very helpful to control strong peaks. By controlling the peaks, more quiet sections can be raised without having the peaks clipping the output.

Another reason for using compression is that our ears have built in compression. Our ears dip and self adjust the volume when hit with strong and loud signals. In order to make recorded sounds more pleasing to our ears, the right usage of compressors can be a very musical tool.

region-image

All types of compression will effect the dynamic range

The difficulty is to know when to (and not) use compression. All types of compression will effect the dynamics of that recording. If the performance is controlled and consistent, there is usually no need for compression. Sometimes an EQ is a more appropriate tool if you are trying to balance a mix. Try to understand the reason why you want to use compression. Ask yourself what you are trying to accomplish.

In order to control an audio signal a compressor usually has settings for

Threshold concepts

CompressionDiagram

This is a well known plugin (Waves C1), where the threshold is set on the x-axis. For me this is a bit confusing. OK, the plugin is easy enough to use but...

CompressionDiagram

 

For the purpose of this document, I think it might be easier to understand Threshold if it's related to sound level represented on the y-axis.

Hard knee makes the compressor gain reduce immediately at the threshold.

A soft knee blurs the threshold line and makes the transition into gain reduction a bit smoother.

Compression – Time considerations

compressor-tempo-considerations

The compressor kicks in when the audio signal reaches the threshold. Attack decides how fast to gain reduce and the release tells the compressor how long before release of the reduction.

Consider tempo when adjusting attack and release times.

Formula to Calculate Time in Relation to BPM

time = 1 / bpm

60000 milliseconds (1 min) / Tempo (BPM) = Delay Time in ms for quarter-note beats (four on the floor)

How long is a beat? Example, four on the floor:

60000 / 120 = 500 milliseconds

Transient Control
catch the peaks

comp-transient-control

 

Set a fast attack time, use exaggerated threshold to hear what it is happening, then back off. If the compressor has settings for it, let the compressor listen to PEAK instead of RMS. Use the Release to decide how quick the compressor should let go.

The trick here is to set a high ratio and balance with the threshold so that the compressor only catches and effects the peaks of the transients. Please note that a very low attack setting can cause the compressor to sound really bad, try 0.5 ms instead of 0 ms and experiment with the release time to make it sound natural.

Catch the peaks settings with a fast type of compressor

CompressorPeakDetection02

Not all compressors do this job well. It is easy to make the sound worse using this method. You can hear distortion when the attack time is to small. Try backing off attack just a little and balance the release time.

I have tried using limiters for this method but the peaks really gets chopped off. It might sound OK but does not look so good on the waveform.

CatchThePeaksWithLimiters

Peak Control with Volume Automation

Another option I would recommend using is volume automation if the source material has just a few peaks that needs to be controlled.

Alternative method for single peak control

Peak_Control_Automation.png

Volume Control
even out general levels

compressor-gain-reduction2

Slower attack, slower release, soft knee. Think of it as a volume rider

Example settings for averaging out volume differences. In this case it might be good to choose a slower compressor, longer attack and release time. Usually you don't want to effect the transients with this compressor. All settings, especially threshold is totally dependent on the source material. The example below depicts settings for a slow picking acoustic guitar

Compressor-VolumeControl01.png

Experiment with different types of compressors and always A-B listen if it's improved or not

Use two Compressors instead of one

Often it is better to use two compressors instead trying to do everything with just one. Use a combination of the two approaches described above. Typically you would want to control the peaks first. Please note that any type of clean up EQ should be used before the compressors. You do not want to hit the compressor with any unwanted material

Stage 1 - Peak Controller

Usage, short attack time, peak detection and balance the release time to a natural sound

The important thing to remember is that you only want to catch hard hitting peaks with this compressor, the rest should be untouched. Use the threshold to detect the peaks and set a high ratio. Balance the settings according to source the material so that the compressor works as transparent as possible.

Compressor-CatchThePeaks.png

I would recommend turning the MAKE UP auto gain to OFF and using A-B listening instead to determine if the compressor is working as intended. Otherwise auto gain will fool you making you believe your work is done (louder sounds better). At this stage, loudness is better controlled with faders.

Stage 2 - Dynamic Range Controller

Use a slower compressor (RMS detection if available), set a longer attack and release time, moderate ratio and find a suitable level with the threshold

Compressor-VolumeControl02.png

At this stage I would highly recommend trying different types of compressors. If you want to color your sound with compression, this is the place to do it.

Comparative result

(hover to see the result of a two stage compression)

Compressor-Comparison02-uncomp

The compressed signal looks more quiet (and is in numbers), but in context the result is perceived the same because the appearance is of a more consistent performance.

References

Basic concepts of compression

en.wikipedia.org/wiki/Dynamic_range_compression

History of sound processing (broadcast)

www.thebdr.net/articles/audio/proc/proc-hist.pdf

Copyright © 2024 Hans E Andersson. All rights reserved.
heamusic

Login