Dynamic range compression

This article is about a process that intentionally reduces the dynamic range of audio signals. For similar reductions caused by circuit imperfections, see Gain compression. For processes that reduce the size of digital audio files, see Audio compression (data).
A rack of audio compressors in a recording studio. From top to bottom: Retro Instruments/Gates STA level; Spectra Sonic; Dbx 162; Dbx 165; Empirical Labs Distressor; Smart Research C2; Chandler Limited TG1; Daking FET (91579); and Altec 436c.

Dynamic range compression (DRC) or simply compression is an electronic effect unit that reduces the volume of loud sounds or amplifies quiet sounds by narrowing or "compressing" an audio signal's dynamic range. Compression is commonly used in sound recording and reproduction, broadcasting,[1] live sound at music concerts and in some instrument amplifiers (usually bass amps).

Audio compression reduces loud sounds which are above a certain threshold while quiet sounds remain unaffected. In the 2000s compressors became available in audio software for recording. The dedicated electronic hardware unit or audio software used to apply compression is called a compressor. In recorded and live music, compression parameters may be adjusted to change the way the effect sounds. Compression and limiting are identical in process but different in degree and perceived effect.

A limiter is a compressor with a high ratio and, generally, a fast attack time. Limiters are common as a safety device in live sound and broadcast applications to prevent sudden volume peaks from occurring. Limiters are also used as protective features in some components of sound reinforcement systems (e.g., powered mixing boards and power amplifiers) and in some bass amps, to prevent unwanted distortion and/or speaker damage.

Types

Two main methods of dynamic range reduction
Downward compression diagram
Downward compression
Upward compression diagram
Upward compression

Downward compression reduces loud sounds over a certain threshold while quiet sounds remain unaffected. Upward compression increases the loudness of sounds below a certain threshold while leaving louder sounds unaffected. Both downward and upward compression reduce the dynamic range of an audio signal.[2]

An expander performs the opposite function, increasing the dynamic range of the audio signal.[3] Expanders are generally used to make quiet sounds even quieter by reducing the level of an audio signal that falls below a set threshold level. A noise gate is a type of expander.[2]

Design

The signal entering a compressor is split, one copy sent to a variable-gain amplifier and the other to a side-chain where a circuit controlled by the signal level applies the required gain to an amplifier stage. This design, known as a "feed-forward" type, is used today in most compressors. Earlier designs were based on a "feedback" layout where the signal feeding the control circuit was taken after the amplifier.

There are a number of technologies used for variable gain amplification, each having different advantages and disadvantages. Vacuum tubes are used in a configuration called 'variable-mu': the grid-to-cathode voltage changes to alter the gain.[4] Also used is a voltage controlled amplifier (VCA), which has its gain reduced as the power of the input signal increases. Optical compressors use a light sensitive resistor (LDR) and a small lamp (LED or electroluminescent panel[5]) to create changes in signal gain. This technique is believed by some to sound smoother because the response times of the light and the resistor soften the attack and release. Other technologies used include field effect transistors and a diode bridge.[6]

When working with digital audio, digital signal processing techniques are commonly used to implement compression via digital audio editors, or dedicated workstations. Often the algorithms used emulate the above analog technologies.

Controls and features

Different compression ratios

Threshold

A compressor reduces the level of an audio signal if its amplitude exceeds a certain threshold. It is commonly set in decibels dB, where a lower threshold (e.g. -60 dB) means a larger portion of the signal will be treated (compared to a higher threshold of e.g. −5 dB).

Ratio

The amount of gain reduction is determined by ratio: a ratio of 4:1 means that if input level is 4 dB over the threshold, the output signal level will be 1 dB over the threshold. The gain (level) has been reduced by 3 dB:

Threshold = −10 dB
Input = −6 dB (4 dB above the threshold)
Output = −9 dB (1 dB above the threshold)

The highest ratio of ∞:1 is often known as 'limiting'. It is commonly achieved using a ratio of 60:1, and effectively denotes that any signal above the threshold will be brought down to the threshold level (except briefly after a sudden increase in input loudness, known as an "attack").

Attack and release

The attack and release phases in a compressor

A compressor might provide a degree of control over how quickly it acts. The 'attack phase' is the period when the compressor is decreasing gain to reach the level that is determined by the ratio. The 'release phase' is the period when the compressor is increasing gain to the level determined by the ratio, or, to zero dB, once the level has fallen below the threshold.

The length of each period is determined by the rate of change and the required change in gain. For more intuitive operation, a compressor's attack and release controls are labeled as a unit of time (often milliseconds). This is the amount of time it will take for the gain to change a set amount of dB, decided by the manufacturer, very often 10 dB. For example, if the compressor's time constants are referenced to 10 dB, and the attack time is set to 1 ms, it will take 1 ms for the gain to decrease by 10 dB, and 2 ms to decrease by 20 dB.[7]

In many compressors the attack and release times are adjustable by the user. Some compressors, however, have the attack and release times determined by the circuit design and these cannot be adjusted by the user. Sometimes the attack and release times are 'automatic' or 'program dependent', meaning that the times change depending on the input signal. Because the loudness pattern of the source material is modified by the compressor it may change the character of the signal in subtle to quite noticeable ways depending on the settings used.

Soft and hard knees

Hard Knee and Soft Knee compression

Another control a compressor might offer is hard/soft knee. This controls whether the bend in the response curve between below threshold and above threshold is abrupt (hard) or gradual (soft). A soft knee slowly increases the compression ratio as the level increases and eventually reaches the compression ratio set by the user. A soft knee reduces the audible change from uncompressed to compressed, especially for higher ratios where a hard knee changeover would be more noticeable.[8]

Peak vs RMS sensing

A peak sensing compressor responds to the instantaneous level of the input signal. While providing tighter peak control, peak sensing might yield very quick changes in gain reduction, more evident compression or sometimes even distortion. Some compressors will apply an averaging function (commonly RMS) on the input signal before its level is compared to the threshold. This allows a more relaxed compression that also more closely relates to human perception of loudness.

Stereo linking

A compressor in stereo linking mode applies the same amount of gain reduction to both the left and right channels. This is done to prevent image shifting that can occur if each channel is compressed individually. It becomes noticeable when a loud element that is panned to either edge of the stereo field raises the level of the program to the compressor's threshold, causing its image to shift toward the center of the stereo field.

Stereo linking can be achieved in two ways: Either the compressor sums to mono the left and right channel at the input, then only the left channel controls are functional; or, the compressor still calculates the required amount of gain reduction independently for each channel and then applies the highest amount of gain reduction to both (in such case it could still make sense to dial different settings on left and right channels as one might wish to have less compression for left-side events[9]).

Makeup gain

Because the compressor is reducing the gain (or level) of the signal, the ability to add a fixed amount of make-up gain at the output is usually provided so that an optimum level can be used.

Look-ahead

The look-ahead function is designed to overcome the problem of being forced to compromise between slow attack rates that produce smooth-sounding gain changes, and fast attack rates capable of catching transients. Look-ahead is a misnomer in that the future is not actually observed. Instead, the input signal is split, and one side is delayed. The non-delayed signal is used to drive the compression of the delayed signal, which then appears at the output. This way a smooth-sounding slower attack rate can be used to catch transients. The cost of this solution is that the signal is delayed.

Uses

Public spaces

Compression is often used to make music sound louder without increasing its peak amplitude. By compressing the peak (or loudest) signals, it becomes possible to increase the overall gain (or volume) of a signal without exceeding the dynamic limits of a reproduction device or medium. The net effect, when compression is applied along with a gain boost, is that relatively quiet sounds become louder, while louder sounds remain unchanged.

Compression is often applied in this manner in audio systems for restaurants, retail, and similar public environments, where background music is played at a relatively low volume and needs to be compressed not just to keep the volume fairly constant, but also in order for relatively quiet parts of the music to be audible over ambient noise, or audible at all.

Compression can be used to increase the average output gain of a power amplifier by 50 to 100% with a reduced dynamic range. For paging and evacuation systems, this adds clarity under noisy circumstances and saves on the number of amplifiers required.

Music production

Compression is often used in music production to make performances more consistent in dynamic range so that they "sit" in the mix of other instruments better and maintain consistent attention from the listener. Vocal performances in rock music or pop music are usually compressed in order to make them stand out from the surrounding instruments and to add to the clarity of the vocal performance.

Compression can also be used on instrument sounds to create effects not primarily focused on boosting loudness. For instance, drum and cymbal sounds tend to decay quickly, but a compressor can make the sound appear to have a more sustained tail. Guitar sounds are often compressed in order to obtain a fuller, more sustained sound.

In electronic dance music, side-chaining is often used on basslines, controlled by the kick drum or a similar percussive trigger, to prevent the two conflicting, and provide a pulsating, rhythmic dynamic to the sound.

Most devices capable of compressing audio dynamics can also be used to reduce the volume of one audio source when another audio source reaches a certain level; see side-chaining.

Voice

A compressor can be used to reduce sibilance ('ess' sounds) in vocals by feeding the compressor with an EQ set to the relevant frequencies, so that only those frequencies activate the compressor. If unchecked, sibilance could cause distortion even if sound levels are not very high. This usage is called de-essing.

Compression is used in voice communications in amateur radio that employ SSB modulation. Often it is used to make a particular station's signal more readable to a distant station, or to make one's station's transmitted signal stand out against others. This occurs especially in pileups where amateur radio stations are competing for the opportunity to talk to a DX station. Since an SSB signal's amplitude depends on the level of modulation, the net result is that the average amplitude of the signal and hence average transmitted power would be stronger than it would be had compression not been used.[10] Most modern amateur radio SSB transceivers have speech compressors built in.

Compression is also used in land mobile radio, especially in transmit audio of professional walkie-talkies and in remote control dispatch consoles.

Broadcasting

Compression is used extensively in broadcasting to boost the perceived volume of sound while reducing the dynamic range of source audio (typically CDs) to a range that can be accommodated by the narrower-range broadcast signal. Broadcasters in most countries have legal limits on instantaneous peak volume they may broadcast. Normally these limits are met by permanently inserted hardware in the on-air chain (see multiband compression above).

As was alluded to above, the use of compressors to boost perceived volume is a favorite trick of broadcasters who want their station to sound "louder" at the same volume than comparable stations on the dial. The effect is to make the more heavily compressed station "jump out" at the listener at a given volume setting.

But loudness jumps are not limited to inter-channel differences; they also exist between programme material within the same channel. Loudness differences are a frequent source of audience complaints, especially TV commercials and promos which are known to be 'too loud'. One complicating factor is that many broadcasters use (quasi-)peak meters and peak-levelling. Unfortunately the peak level reading does not correlate very well with the perceived loudness. It basically should only be used to prevent overmodulation.

The European Broadcasting Union has been addressing this issue in the EBU PLOUD Group, which consist of over 240 audio professionals, many from broadcasters and equipment manufacturers. In 2010, the EBU published EBU Recommendation R 128, which introduces a new way of metering and normalising audio. The Recommendation is based on ITU-R BS.1770 and could be called a real 'audio revolution'. Several European TV stations have already announced to support the new norm and over 20 manufacturers have announced products supporting the new 'EBU Mode' Loudness meters.[11]

To help audio engineers understand what Loudness Range their material consists of (e.g. to check if some compression may be needed to fit it into the channel of a specific delivery platform), the EBU also introduced the Loudness Range Descriptor.[12]

Marketing

See also: Loudness war
The trend of increasing loudness as shown by waveform images of the same song mastered on CD four times since 1983.

Record companies, mixing engineers and mastering engineers have been gradually increasing the overall volume of commercial albums. The greater loudness is achieved by using higher degrees of compression and limiting during mixing and mastering; compression algorithms have been engineered specifically to accomplish the task of maximizing audio level in the digital stream. Hard limiting or clipping can result, affecting the tone and timbre of the music. The effort to increase loudness has been referred to as the "loudness war".

Most television commercials are compressed heavily (typically to a dynamic range of no more than 3 dB) in order to achieve near-maximum perceived loudness while staying within permissible limits. This is the explanation for a problem that TV viewers and listeners have noticed for years: While commercials receive heavy compression for the same reason that radio broadcasters have traditionally used it (to achieve a "loud" audio image), TV program material, particularly old movies with soft dialogue, is comparatively uncompressed by TV stations. This results in commercials much louder than the television programs.[13][14]

Other uses

A compressor is sometimes used to reduce the dynamic range of a signal for transmission, to be expanded afterward. This reduces the effects of a channel with limited dynamic range. See Companding.

Gain pumping, where a regular amplitude peak (such as a kick drum) causes the rest of the mix to change in volume due to the compressor, is generally avoided in music production. However, many dance and hip-hop musicians purposefully use this phenomenon, causing the mix to alter in volume rhythmically in time with the beat.[15]

A compressor is used in hearing aids to bring the audio volume into the listener's hearing range. To enable the patient to perceive the direction from which the sound is coming, binaural compression may be required.[16]

Compressors are also used for hearing protection in some active sound protection earmuffs and earplugs, to allow sounds at ordinary volumes to be heard normally while attenuating louder sounds, possibly also amplifying softer sounds. This allows, for example, shooters wearing hearing protection at a shooting range to converse normally, while sharply attenuating the much louder sounds of the gunshots, and similarly for musicians to hear quiet music but be protected from loud noises such as drums or cymbal clashes.

Limiting

Limiting and clipping compared. Note that clipping introduces a large amount of distortion whereas limiting only introduces a small amount while keeping the signal within the threshold.
Main article: Limiting

Compression and limiting are identical in process but different in degree and perceived effect. A limiter is a compressor with a high ratio and, generally, a fast attack time. Compression with ratio of 10:1 or more is generally considered limiting.[17]

Brick wall limiting has a very high ratio and a very fast attack time. Ideally, this ensures that an audio signal never exceeds the amplitude of the threshold. Ratios of 20:1 all the way up to ∞:1 are considered to be 'brick wall'.[17] The sonic results of more than momentary and infrequent hard/brick-wall limiting are harsh and unpleasant, thus it is more common as a safety device in live sound and broadcast applications.

Some bass amps and PA system amplifiers include limiters to prevent sudden volume peaks from causing distortion and/or damaging the speakers. Some modern consumer electronics devices incorporate limiters. Sony uses the automatic volume limiter system (AVLS), on some audio products and the PlayStation Portable.

Side-chaining

The sidechain of a feed-forward compressor
Uplifting Trance Sidechain
The first 8 bars are without side-chaining applied, the second 8 are with side-chaining.

Problems playing this file? See media help.

A compressor with a side-chain input controls gain from main input to output based on the level of the signal at the side-chain input.[18] The compressor behaves in the conventional manner when both inputs are supplied with the same signal. The side-chain input is used by disc jockeys for ducking – lowering the music volume automatically when speaking. The DJ's microphone signal is routed to the side-chain input so that whenever the DJ speaks the compressor reduces the volume of the music. A sidechain with equalization controls can be used to reduce the volume of signals that have a strong spectral content within a certain frequency range: it can act as a de-esser, reducing the level of vocal sibilance in the range of 6–9 kHz.[19] A de-esser helps reduce high frequencies that tend to overdrive preemphasized media (such as phonograph records and FM radio). Another use of the side-chain in music production serves to maintain a loud bass track without the bass drum causing undue peaks that result in loss of overall headroom.[18]

Parallel compression

One technique is to insert the compressor in a parallel signal path. This is known as parallel compression, a form of upward compression, which can give a measure of dynamic control without significant audible side effects, if the ratio is relatively low and the compressor's sound is relatively neutral. On the other hand, a high compression ratio with significant audible artifacts can be chosen in one of the two parallel signal paths—this is used by some concert mixers and recording engineers as an artistic effect called New York compression or Motown compression. Combining a linear signal with a compressor and then reducing the output gain of the compression chain results in low-level detail enhancement without any peak reduction (since the compressor will significantly add to the combined gain at low levels only). This will often be beneficial when compressing transient content, since high-level dynamic liveliness is still maintained, despite the overall dynamic range reduction.

Multiband compression

Multiband (also spelled multi-band) compressors can act differently on different frequency bands. The advantage of multiband compression over full-bandwidth (full-band, or single-band) compression is that unneeded audible gain changes or "pumping" in other frequency bands is not caused by changing signal levels in a single frequency band.

Multiband compressors work by first splitting the signal through some number of band-pass filters or crossover filters. The frequency ranges or crossover frequencies may be adjustable. Each split signal then passes through its own compressor and is independently adjustable for threshold, ratio, attack, and release. The signals are then recombined and an additional limiting circuit may be employed to ensure that the combined effects do not create unwanted peak levels.

Software plug-ins or DSP emulations of multiband compressors can be complex, with many bands, and require corresponding computing power.

Multiband compressors are primarily an audio mastering tool, but their inclusion in digital audio workstation plug-in sets is increasing their use among mix engineers. Hardware multiband compressors are also commonly used in the on-air signal chain of a radio station, either AM or FM, in order to increase the station's apparent loudness without fear of overmodulation. Having a louder sound is often considered an advantage in commercial competition. However, adjusting a multiband output compressor of a radio station also requires some artistic sense of style, plenty of time and a good pair of ears. This is because the constantly changing spectral balance between audio bands may have an equalizing effect on the output, by dynamically modifying the on-air frequency response. A further development of this approach is programmable radio output processing, where the parameters of the multiband compressor automatically change between different settings according to the current programme block style or the time of day.

Serial compression

Serial compression is a technique used in sound recording and mixing. Serial compression is achieved by using two fairly different compressors in a signal chain. One compressor will generally stabilize the dynamic range while the other will more aggressively compress stronger peaks. This is the normal internal signal routing in common combination devices marketed as "compressor-limiters", where an RMS compressor (for general gain control) would be directly followed by a fast peak sensing limiter (for overload protection). Done properly, even heavy serial compression can sound very natural in a way not possible with a single compressor. It is most often used to even out erratic vocals and guitars.

Compressors for software audio players

Some software audio players support plugins which implement compression. These can be used to increase the perceived volume of audio tracks, or to even out the volume of highly-variable music (such as classical music, or a playlist spanning many music types). This improves the listenability of audio when played through poor-quality speakers, or when played in noisy environments (such as in a car or during a party). Such software may also be used in micro-broadcasting or home-based audio mastering.

Objective influence of compressors and limiters on the signal

In an article released in January 2014 by the Journal of the Audio Engineering Society,[20] Emmanuel Deruty and Damien Tardieu performed a systematic study describing the influence of compressors and brickwall limiters on the musical audio signal. The experiment involved four software limiters: Waves L2,[21] Sonnox Oxford Limiter,[22] Thomas Mundt’s Loudmax,[23] Blue Cat’s Protector,[24] as well as four software compressors: Waves H-Comp,[25] Sonnox Oxford Dynamics,[26] Sonalksis SV-3157,[27] and URS 1970.[28] The study provides objective data on what limiters and compressors do to the audio signal.

Five signal descriptors were considered: RMS power, EBU3341/R128 integrated loudness,[11] crest factor, EBU3342 LRA,[12] and density of clipped samples. RMS power accounts for the signal's physical level, EBU3341 loudness for the perceived level.[11] The crest factor, which is the difference between the signal's peak and its average power,[20] is on occasions considered as a basis for the measure of micro-dynamics, for instance in the TT Dynamic Range Meter plug-in.[29][30] Finally, EBU3342 LRA has been repeatedly considered as a measure of macro-dynamics or dynamics in the musical sense.[20][31][32][33][34]

Limiters

The tested limiters had the following influence on the signal:

In other words, limiters increase both physical and perceptual levels, increase the density of clipped samples, decrease the crest factor and decrease macro-dynamics (LRA) given that the amount of limiting is substantial.

Compressors

As far as the compressors are concerned, the authors performed two processing sessions, using a fast attack (0.5 ms) in one case, and a slow attack (50 ms) in the other. Gain make-up is deactivated, but the resulting file is normalized.

Set with a fast attack, the tested compressors had the following influence on the signal:

In other words, fast-attack compressors increase both physical and perceptual levels, but only slightly. They decrease the density of clipped samples, and decrease both crest factor and macro-dynamics.

Set with a slow attack, the tested compressors had the following influence on the signal:

In other words, slow-attack compressors decrease both physical and perceptual levels, decrease macro-dynamics, but have no influence on crest factor and clipped sample density.

See also

References

  1. Follansbee, Joe (2006). Hands-on Guide to Streaming Media: An Introduction to Delivering On-Demand Media. Focal Press. p. 84. ISBN 9780240808635.
  2. 1 2 Reese, David; Gross, Lynne; Gross, Brian (2009). Audio Production Worktext: Concepts, Techniques, and Equipment. Focal Press. p. 149. ISBN 0-240-81098-8.
  3. Dynamic Range Processing and Digital Effects
  4. Gain Control Devices, Side Chains, Audio Amplifiers
  5. http://www.uaudio.com/_works/pdf/manuals/LA-2A_manual.pdf
  6. Universal Audio
  7. Rick Jeffs, Scott Holden, Dennis Bohn (September 2005). "RaneNote 155: Dynamics Processors – Technology & Applications" (PDF). Rane Corporation. Retrieved 2012-12-21.
  8. Sound On Sound, December 2000. Paul White. Advanced Compression Techniques
  9. UAD Powered Plug-Ins, User Manual, Version 4.10, Fairchild 670 section, p. 133
  10. "HF Radio Systems & Circuits", Sabin & Schoenike, editors. Noble, 1998, pp. 13–25, 271–290
  11. 1 2 3 EBU Tech 3341
  12. 1 2 EBU Tech 3342
  13. Are these noisy TV adverts legal?, This is Money, 9 May 2009
  14. TV ads sound too loud and rules should change, says regulator. Out-law.com, June 2007
  15. "Compression in Audio Music Mixing". Retrieved 2013-12-07.
  16. Robert E. Sandlin (2000). Textbook of Hearing Aid Amplification. Cengage Learning. ISBN 9781565939974.
  17. 1 2 Maureen Droney and Howard Massey. "Compression Applications" (PDF). TC Electronic. Archived from the original (PDF) on 2010-12-31.
  18. 1 2 Justin Colletti (June 27, 2013). "Beyond The Basics: Sidechain Compression". Retrieved 2015-03-16.
  19. Mike Senior. "Techniques For Vocal De-essing". Retrieved 2015-03-16.
  20. 1 2 3 Emmanuel Deruty, Damien Tardieu (January 2014). "About Dynamic Processing in Mainstream Music". Journal of the Audio Engineering Society. Retrieved 2014-06-06. (subscription required (help)).
  21. Waves. "L2 Ultramaximizer".
  22. Sonnox. "Oxford Limiter".
  23. Thomas Mundt. "Loudmax".
  24. Blue Cat Audio. "Protector".
  25. Waves. "H-Comp Hybrid Compressor".
  26. Sonnox. "Oxford Dynamics".
  27. Sonalksis. "SV-315 Compressor".
  28. Unique Recording Software. "URS 1970 Classic Console Compressor Limiter".
  29. Earl Vickers (November 4, 2010). "The Loudness War: Background, Speculation and Recommendations" (PDF). AES 2010: Paper Sessions: Loudness and Dynamics. San Francisco: Audio Engineering Society. Retrieved July 14, 2011.
  30. "Dynamic Range Meter".
  31. Deruty, Emmanuel (September 2011). "'Dynamic Range' & The Loudness War". Sound on Sound. Retrieved 2013-10-24.
  32. "Measuring the Evolution of Contemporary Western Popular Music". Scientific Reports 2. 26 July 2012. doi:10.1038/srep00521. Retrieved 26 July 2012.
  33. Jens Hjortkjær, Mads Walther-Hansen (January 2014). "Perceptual Effects of Dynamic Range Compression in Popular Music Recordings". Journal of the Audio Engineering Society. Retrieved 2014-06-06. (subscription required (help)).
  34. Esben Skovenborg (April 2012). "Loudness Range (LRA) – Design and Evaluation". AES 132nd Convention. Retrieved 2014-10-25. (subscription required (help)).

External links

This article is issued from Wikipedia - version of the Saturday, January 09, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.