Dynamic range compression: Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Added article-number. Removed parameters. Some additions/deletions were parameter name changes. | Use this bot. Report bugs. | Suggested by Abductive | Category:Audio engineering | #UCB_Category 13/238
 
(908 intermediate revisions by more than 100 users not shown)
Line 1:
{{Short description|Audio signal processing operation}}
{{Otheruses4|a process that reduces the dynamic range of audio signals|processes that reduce the size of digital audio files|audio data compression}}
{{About|a process that intentionally reduces the dynamic range of audio signals|similar reductions caused by circuit imperfections|Gain compression|processes that reduce the size of digital audio files|Data compression{{!}}Audio compression (data)}}
{{Use American English|date=June 2020}}
 
[[File:Comp. rack (Supernatural).jpg|thumb|150px|A rack of audio compressors in a recording studio. From top to bottom: Retro Instruments/Gates STA level; Spectra Sonic 610; [[Dbx (noise reduction)|Dbx]] 162; Dbx 165; [[Empirical Labs Distressor]]; Smart Research C2; Chandler Limited TG1; Daking FET (91579); and [[Altec Lansing|Altec]] 436c.]]
'''Audio level compression''', also called '''dynamic range compression''', '''volume compression''', '''compression''', '''limiting''', or '''DRC''' (often seen in [[DVD player]] settings) is a process that manipulates the [[dynamic range]] of an audio signal. Compression is used during [[sound recording]], live [[sound reinforcement]], and [[broadcasting]] to improve the perceived volume of audio. A '''compressor''' is the device used to create compression.
 
'''Dynamic range compression''' ('''DRC''') or simply '''compression''' is an [[audio signal processing]] operation that reduces the volume of loud [[sound]]s or amplifies quiet sounds, thus reducing or ''compressing'' an [[audio signal]]'s [[dynamic range]]. Compression is commonly used in [[sound recording and reproduction]], [[broadcasting]],<ref name="Follansbee">{{Cite book |url=https://books.google.com/books?id=gEN1GbEgb5AC |title=Hands-on Guide to Streaming Media: An Introduction to Delivering On-Demand Media |last=Follansbee |first=Joe |publisher=Focal Press |year=2006 |isbn=9780240808635 |edition=1 |page=84 |oclc=1003326401 |via=Google Books}}</ref> [[sound reinforcement system|live sound reinforcement]] and some [[instrument amplifier]]s.
== Explanation ==
[[Image:Audio-level-compresion-diagram-01.svg|thumb|right|300px|The relationship between input level, output level, and gain reduction in a compressor]]
A compressor reduces the dynamic range of an audio signal if its amplitude exceeds a threshold. The amount of gain reduction is determined by a ''ratio'' control. For example, with a ratio of 4:1, an increase of 4&nbsp;[[decibel|dB]] will be needed to increase the output signal level by 1&nbsp;dB over the threshold. Contrast this with the complementary process of an [[Audio level expansion|expander]], which increases the dynamic range of a signal. [http://ccrma.stanford.edu/courses/192b/192b_Lecture_1_06.pdf]
 
A dedicated electronic hardware unit or audio software that applies compression is called a '''compressor'''. In the 2000s, compressors became available as software plugins that run in [[digital audio workstation]] software. In recorded and live music, compression parameters may be adjusted to change the way they affect sounds. Compression and [[limiting]] are identical in process but different in degree and perceived effect. A limiter is a compressor with a high [[#Ratio|ratio]] and, generally, a short [[#Attack and release|attack time]].
A compressor accomplishes its task of reducing dynamic range by using a variable-[[gain]] [[amplifier]] to reduce the [[gain]] of the signal. This is typically carried out in analog systems by using a [[voltage controlled amplifier]] which has its gain reduced as the power of the input signal increases. Optical compressors use a light sensitive diode (an [[optocoupler]]) to detect changes in signal gain. This vintage technique is believed by some to add smoother characteristics to the signal, because the response times of the light and the diode soften the attack and release.
 
Compression is used to improve performance and clarity in [[public address system]]s, as an [[Effects unit|effect]] and to improve consistency in [[Audio mixing (recorded music)|mixing]] and [[Mastering (audio)|mastering]]. It is used on voice to reduce sibilance and in [[broadcasting]] and [[advertising]] to make an audio program stand out. It is an integral technology in some [[noise reduction]] systems.
An alternative technique is to insert the compressor in a parallel signal path. This is known as [[parallel compression]], and can give a measure of dynamic control without significant audible side effects.
 
== Types ==
Currently, [[digital signal processing]] techniques are commonly used to implement compression via [[digital audio editor]]s, or dedicated [[digital audio workstation|workstations]].
{{multiple image
| align = left
| total_width = 500
| header = '''Two methods of dynamic range compression'''
| caption_align = center
| image1 = Audio-level-compresion-diagram-01.svg
| height1 = 160
| alt1 = Downward compression diagram
| caption1 = Downward compression
| image2 = Upward compression.svg
| height2 = 180
| alt2 = Upward compression diagram
| caption2 = Upward compression
}}
There are two types of compression: downward and upward. Both types of compression reduce the [[Dynamic range#Audio|dynamic range]] of an audio signal.<ref name="Reese">{{Cite book|last1=Reese|first1=David E|url=https://archive.org/details/audioproductionw0000rees|title=Audio Production Worktext: Concepts, Techniques, and Equipment|last2=Gross|first2=Lynne S|last3=Gross|first3=Brian|publisher=Focal Press|year=2009|isbn=978-0-240-81098-0|pages=[https://archive.org/details/audioproductionw0000rees/page/149 149]|oclc=1011721139|url-access=registration|via=Internet Archive}}</ref>
 
''Downward'' compression reduces the volume of loud sounds ''above'' a certain threshold. The quiet sounds ''below'' the threshold remain unaffected. This is the most common type of compressor. A [[limiter]] can be thought of as an extreme form of downward compression as it compresses the sounds over the threshold especially hard.
== Limiting ==
 
''Upward'' compression increases the volume of quiet sounds ''below'' a certain threshold. The louder sounds ''above'' the threshold remain unaffected.
== Side-chaining ==
 
Some compressors also have the ability to do the ''opposite'' of compression, namely ''expansion''. Expansion ''increases'' the dynamic range of the audio signal.<ref>{{Cite web |url=https://ccrma.stanford.edu/courses/192b/192b_Lecture_1_18.pdf |title=Dynamic Range Processing and Digital Effects |last=Kadis |first=Jay }}{{Cite web |url=https://ccrma.stanford.edu/courses/192b/192b_Lecture_1_18.pdf |title=Dynamic Range Processing and Digital Effects |last=Kadis |first=Jay }}</ref> Like compression, expansion comes in two types, downward and upward.
[[Side chain (sound)|Side-chaining]] uses the dynamic level of another input to control the compression level of the signal. This is used by [[disc jockey]]s to lower the music volume automatically when speaking, for example (known as ''[[ducking]]''). A frequency-specific compressor (often used for de-essing) may be constructed by feeding a [[high-pass filter]]ed copy of the original signal into the side-chain input of the compressor so that volume reduction on the original signal only takes place when a specific frequency is present in large amounts (such as [[sibilant]] sounds that tend to overdrive [[preemphasis|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, while still keeping the bass out of the way of the drum when the drum hits.
 
''Downward'' expansion makes the quiet sounds below the threshold even quieter. A [[noise gate]] can be thought of as an extreme form of downward expansion as the noise gate make the quiet sounds (for instance: noise) quieter or even silent, depending on the floor setting.<ref name="Reese" />
== Multiband compression ==
 
''Upward'' expansion makes the louder sounds above the threshold even louder.
== Compressor features and usage ==
{{Clear}}
Compressors usually have controls to set how fast the compressor responds to changes in input level, known as ''attack'', and how quickly the compressor returns to no gain reduction once the input level falls below the threshold, known as ''release''. 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.
 
== Design ==
A second control on a compressor is hard/soft knee. This controls whether the bend in the response curve is a sharp angle or has a rounded edge. A soft knee reduces the audible change from uncompressed to compressed, especially for higher ratios where the changeover is more noticeable. [http://alesis.com/support/notes/Signal_Processing/Compterm.html]
[[File:Compressors Feed Design.gif|frame|A feed-forward compressor design (left) and feedback design (right)]]
 
The signal entering a compressor is split; one copy is sent to a [[variable-gain amplifier]] and the other to a ''side-chain'' where the signal level is measured and a circuit controlled by the measured signal level applies the required gain to the amplifier. 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 level was measured after the amplifier.<ref>{{Cite journal |last1=Giannoulis |first1=Dimitrios |last2=Massberg |first2=Michael |last3=Reiss |first3=Joshua D. |date=2012-07-09 |title=Digital Dynamic Range Compressor Design—A Tutorial and Analysis |url=https://www.eecs.qmul.ac.uk/~josh/documents/2012/GiannoulisMassbergReiss-dynamicrangecompression-JAES2012.pdf |journal=Journal of the Audio Engineering Society |language=en |volume=60 |issue=6 |pages=399–408 |citeseerx=10.1.1.260.1340 |access-date=2019-06-06}}</ref>
An audio engineer might use a compressor in a subtle way in order to reduce the dynamic range of source material in order to allow it to be recorded optimally on a medium with a more limited dynamic range than the source signal, or they might use a compressor in order to deliberately change the character of an instrument being processed.
 
There are a number of technologies used for variable-gain amplification, each having different advantages and disadvantages. [[Vacuum tube]]s are used in a configuration called ''variable-mu'' where the grid-to-cathode voltage changes to alter the gain.<ref>{{Cite web |url=http://www.tangible-technology.com/dynamics/comp_lim_ec_dh_pw2.html |title=An Overview of Compressor/Limiters and Their Guts |last1=Ciletti |first1=Eddie |last2=Hill |first2=David |date=2008-04-19 |website=www.tangible-technology.com |access-date=2019-11-03 |last3=Wolff |first3=Paul}}</ref> Optical compressors use a [[photoresistor]] stimulated by a small lamp ([[Incandescent light bulb|incandescent]], [[LED]], or [[Electroluminescence|electroluminescent panel]])<ref>{{Cite web |url=http://media.uaudio.com/assetlibrary/l/a/la-2a_manual.pdf |title=Model LA-2A Leveling Amplifier |website=Universal Audio |type=Manual }}</ref> to create changes in signal gain. Other technologies used include [[field effect transistor]]s and a [[diode bridge]].<ref>{{Cite magazine |last=Berners |first=Dave |date=April 2006 |title=Compression Technology and Topology |url=https://www.uaudio.com/webzine/2006/april/text/content4.html |department=Analog Obsession |magazine=Universal Audio WebZine |publisher=Universal Audio |volume=4 |issue=3 |access-date=2016-08-29}}</ref>
Engineers wishing to achieve dynamic range reduction with few obvious effects might choose a relatively low threshold and low compression ratio so that the source material is being compressed very slightly most of the time. To deliberately soften the attack of a snare drum, they might choose a fast attack time and a moderately fast release time combined with a higher threshold. To accentuate the attack of the snare, they might choose a slower attack time to avoid affecting the initial transient. It is easier to successfully apply these controls if the user has a basic knowledge of musical instrument acoustics.
 
When working with digital audio, [[digital signal processing]] (DSP) techniques are commonly used to implement compression as [[audio plug-in]]s, in [[mixing console]]s, and in [[digital audio workstation]]s. Often the algorithms are used to emulate the above analog technologies.{{citation needed|date=May 2019}}
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 provided so that an optimum level can be used.
 
== CommonControls usesand features ==
[[File:Compression ratio.svg|thumb|right|220px|Different compression ratios for a signal level above the threshold]]
A number of user-adjustable control parameters and features are used to adjust dynamic range compression signal processing algorithms and components.
 
=== Threshold ===
A compressor reduces the level of an audio signal if its amplitude exceeds a certain ''threshold''. Threshold is commonly set in [[decibels]] ([[dBFS]] for digital compressors and [[dBu]] for hardware compressors),<ref>{{Cite web |url=https://www.audiomasterclass.com/newsletter/audio-compressor-controls-the-threshold-control |title=Audio compressor controls: The threshold control |last=Mellor |first=David |date=2017-11-16 |website=Audio Masterclass |access-date=2019-07-31}}</ref> where a lower threshold (e.g.{{nbsp}}−60&nbsp;dB) means a larger portion of the signal is treated. When the signal level is below the threshold, no processing is performed and the input signal is passed, unmodified, to the output. Thus a higher threshold of, e.g.,{{nbsp}}−5&nbsp;dB, results in less processing, less compression.
 
Threshold timing behavior is subject to attack and release settings (see [[#Attack and release|below]]). When the signal level goes above threshold, compressor operation is delayed by the ''attack'' setting. For an amount of time determined by the ''release'' after the input signal has fallen below the threshold, the compressor continues to apply dynamic range compression.
 
=== Ratio ===
The amount of gain reduction is determined by '''ratio''': a ratio of 4:1 means that if input level is 4&nbsp;[[decibel|dB]] over the threshold, the output signal level is reduced to 1&nbsp;dB over the threshold. The gain and output level has been reduced by 3&nbsp;dB. Another way of stating this is that any input signal level over the threshold will, in this case, be output at a level which is only 25% {{nobreak|(i.e. 1 over 4)}} as much over the threshold as its input level was.
 
The highest ratio of <math>\infty</math>:1 is often known as ''limiting'', and effectively denotes that any signal above the threshold is brought down to the threshold level once the ''attack'' time has expired.
 
=== Attack and release ===
[[File:Audio Compression Attack and Release-2.svg|thumb|220px|The attack and release phases in a compressor]]
A compressor may provide a degree of control over how quickly it acts. The ''attack'' is the period when the compressor is decreasing gain in response to the increased level at the input to reach the gain determined by the ratio. The ''release'' is the period when the compressor is increasing gain in response to reduced level at the input to reach the output gain determined by the ratio, or, to unity, once the input level has fallen below the threshold. Because the loudness pattern of the source material is modified by the time-varying operation of compressor, it may change the character of the signal in subtle to quite noticeable ways depending on the attack and release settings used.
 
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 takes for the gain to change a set amount of dB or a set percentage towards the target gain. There is no industry standard for the exact meaning of these time parameters.<ref>{{Cite journal |last1=Jeffs |first1=Rick |last2=Holden |first2=Scott |last3=Bohn |first3=Dennis |date=September 2005 |title=Dynamics Processors – Technology & Applications |url=https://www.ranecommercial.com/kb_article.php?article=2129 |journal=RaneNote |publisher=[[Rane Corporation]] |issue=155 |pages=6–7 |access-date=2012-12-21 |quote=There is no industry standard and different manufacturers define [release time] differently.}}</ref>
 
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 cannot be adjusted. Sometimes the attack and release times are ''automatic'' or ''program dependent'', meaning that the behavior may change depending on the input signal.
 
=== Soft and hard knees ===
[[File:Compression knee.svg|thumb|220px|right|Hard Knee and Soft Knee compression]]
Another control a compressor might offer is hard knee or soft knee selection. 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 potentially audible transition from uncompressed to compressed, and is especially applicable for higher ratio settings where the changeover at the threshold would be more noticeable.<ref>{{Cite magazine |last=White |first=Paul |date=December 2000 |title=Advanced Compression Techniques |url=http://www.soundonsound.com/sos/dec00/articles/adcompression.htm |magazine=Sound On Sound |archive-url=https://web.archive.org/web/20150924122828/http://www.soundonsound.com/sos/dec00/articles/adcompression.htm |archive-date=2015-09-24 |url-status=dead}}</ref>
 
=== Peak vs RMS sensing ===
A peak-sensing compressor responds to the peak level of the input signal. While providing tighter peak level control, peak level sensing does not necessarily relate to human perception of loudness. Some compressors apply a power measurement function (commonly [[root mean square]] or RMS) on the input signal before comparing its level to the threshold. This produces a more relaxed compression that 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.<ref>{{Cite book |chapter-url=http://media.uaudio.com/support/manuals/v9100-vp4lQz6/UAD%20Plug-Ins%20Manual.pdf |title=UAD Plug-Ins Manual |publisher=Universal Audio |edition=190724 |pages=219–220 |chapter=Fairchild Tube Limiter Collection}}</ref>
 
=== Make-up gain ===
Because a downward compressor only reduces the 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 output level is produced.
 
=== 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 implemented by splitting the input signal and delaying one side (the audio signal) by the look-ahead time. The non-delayed side (the gain control 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 added [[audio latency]] through the processor.
 
== Uses ==
 
=== Public spaces ===
Compression is often applied in audio systems for restaurants, retail, and similar public environments that play background music at a relatively low volume and need it compressed, not just to keep the volume fairly constant, but also to make quiet parts of the music audible over ambient noise.
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 can increase average output gain of a [[Amplifier|power amplifier]] by 50 to 100% with a reduced dynamic range.{{citation needed|date=May 2020}} For paging and evacuation systems, this adds clarity under noisy circumstances and saves on the number of amplifiers required.
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.
 
=== Music production ===
[[File:Behringer CD400 Compressor 8198.jpg|thumb|An inexpensive guitar compressor]]
Compression is sometimes used to reduce the volume of one audio source when another audio source reaches a certain level; see [[#Side-chaining|Side-Chaining]] above.
Compression is often used in music production to make instruments more consistent in dynamic range, so that they "sit" more nicely in the mix with the other instruments (neither disappear during short periods of time, nor overpower the other instruments during short periods).<ref name=broadcastbridge/> Vocal performances in [[rock and roll|rock music]] or [[pop music]] are compressed for the same reason.
 
Compression can also be used on instrument sounds to create effects not- primarily- focused on boostingstabilizing the [[loudness]]volume. 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 obtainproduce a fuller, more sustained 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; this is called [[Dynamic range compression#Side-chaining|side-chaining]].<ref>{{cite web|url=https://www.sageaudio.com/blog/pre-mastering-tips/sidechaining.php|title=What is Sidechaining|work=Sage Audio|access-date=12 May 2020}}</ref> In [[electronic dance music]], side-chaining is often used on [[bassline]]s, controlled by the kick drum or a similar percussive trigger, to prevent the two from conflicting, and provide a pulsating, rhythmic dynamic to the sound.
Compression is also 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 and roll|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.
 
=== Voice ===
A compressor can be used to reduce [[sibilance]] ('ess' sounds) in vocals ([[de-essing]]) by feeding the compressor's withside-chain an EQ[[Equalization set(audio)|equalized]] toversion of the relevantinput frequenciessignal, so that only those frequencies activate the compressor. If uncheckedspecific, sibilance-related couldfrequencies cause(typically distortion4000 evento if8000 soundhz) levelsactivate arethe notcompressor verymore.<ref>{{cite highmagazine|url=https://www.soundonsound.com/techniques/techniques-vocal-de-essing|title=Techniques For ThisVocal usageDe-essing|magazine=Sound ison calledSound|date=May 'de2009|access-essing'.date=12 [http:May 2010}}<//alesis.com/support/notes/Signal_Processing/Compapp.html]ref>
 
Compression is used in voice communications in [[amateur radio]] that employ [[single-sideband modulation|single-sideband (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 occursis applicable especially in [[amateur radio pileup|pileupDXing]]s where amateur radio stations are competing for the opportunity to talk to a [[DX communication|DX]] station. Since anAn SSB signal's [[amplitude]]strength depends on the level of [[modulation]],. theA net result iscompressor thatincreases the average amplitudelevel of the modulation signal andthus henceincreasing averagethe transmitted powersignal wouldstrength. beMost strongermodern thanamateur itradio wouldSSB betransceivers hadhave compressionspeech notcompressors been usedbuilt-in.<ref> "HFCompression Radiois Systemsalso &used Circuits",in Sabin[[Two-way &radio|land mobile Schoenikeradio]], editors.especially Noble,in 1998,transmitted pp.audio 13-25,of 271professional [[walkie-290talkie]]s and [[Tone remote|remote control dispatch consoles]].</ref>{{Cite book Most|title=HF modernradio amateursystems radio& SSBcircuits transceivers|publisher=Noble havePub speech|year=1998 compressors|isbn=9781613530740 built|editor-last=Sabin in|editor-first=William E. |edition=2nd |___location=Atlanta |pages=13–25, 271–290 |oclc=842936687 |editor-last2=Schoenike |editor-first2=Edgar O.}}</ref>
 
Compression is also used in [[Two-way radio|land mobile radio]], especially in transmit audio of professional [[Walkie-talkie|walkie-talkies]] and in [[Tone remote|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. (typicallyTo CDs)avoid to[[overmodulation]], a range that can be accommodated by the narrower-range broadcast signal. Broadcastersbroadcasters in most countries have legal limits on instantaneous peak volume they may broadcast. Normally these limits are met by permanently inserted compression hardware in the on-air chain (see [[#Multiband compression|multiband compression]] above).
 
Broadcasters use compressors in order that their station sounds louder than comparable stations. The effect is to make the more heavily compressed station jump out at the listener at a given volume setting.<ref name=broadcastbridge>{{Cite web|url=https://www.thebroadcastbridge.com/content/entry/7278/using-compression-for-recorded-and-live-audio|title=Using Compression for Recorded and Live Audio - The Broadcast Bridge - Connecting IT to Broadcast|first=The Broadcast|last=Bridge|date=November 23, 2016|website=www.thebroadcastbridge.com}}</ref> This is 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 that seem too loud.
The same recording can have very different dynamics when heard via [[AM broadcasting|AM]], [[FM broadcasting|FM]], [[CD]], or other media (although [[frequency response]] and [[noise (audio)|noise]] are large factors as well).
 
The [[European Broadcasting Union]] (EBU) has been addressing this issue in the EBU PLOUD group, which consists of over 240 audio professionals, many from broadcasters and equipment manufacturers. In 2010, the EBU published [[EBU R 128]] which introduces a new way of metering and [[Audio normalization|normalizing audio]]. The Recommendation uses [[ITU-R BS.1770]] loudness metering. {{as of|2016}}, several European TV stations have announced their support for the new norm<ref>{{Cite web|url=https://www.ebu.ch/news/2011/loudness-france-chooses-ebu-r128|title=Loudness: France chooses EBU R128 to bolster audio laws|date=25 October 2011|website=[[European Broadcasting Union]]|language=en|access-date=8 April 2020}}</ref><ref>{{Cite web|url=https://www.svgeurope.org/blog/headlines/sky-confirms-formal-adoption-of-r128-loudness-specification/|title=Sky confirms formal adoption of R128 loudness specification|last=Davies|first=David|date=9 December 2013|website=SVG Europe|language=en|access-date=8 April 2020}}</ref> and over 20 manufacturers have announced products supporting the new ''EBU Mode'' loudness meters.<ref name="EBU3341">{{Citation |url=https://tech.ebu.ch/publications/tech3341 |title='EBU Mode' metering to supplement EBU R 128 loudness normalisation |date=2016-01-25 |publisher=European Broadcasting Union |series=Version 3.0 |language=en |id=EBU Tech 3341 |access-date=2019-11-03}}</ref>{{failed verification|reason=Does not support manufacturers|date=October 2020}}
 
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'' (LRA) descriptor.<ref name="EBU3342">{{Citation |url=https://tech.ebu.ch/publications/tech3342 |title=Loudness range: A measure to supplement EBU R 128 loudness normalisation |date=2016-01-25 |publisher=European Broadcasting Union |series=Version 3.0 |___location=Geneva |language=en |id=EBU Tech 3342}}</ref>
 
=== Marketing ===
Most television commercials are heavily compressed to achieve near-maximum perceived loudness while staying within permissible limits. This causes a problem that TV viewers often notice: when a station switches from minimally compressed program material to a heavily compressed commercial, the volume sometimes seems to increase dramatically. Peak loudness might be the same—meeting the letter of the law—but high compression puts much more of the audio in the commercial at close to the maximum allowable, making the commercial seem much louder.<ref>{{Cite web |url=https://www.pinsentmasons.com/out-law/news/tv-ads-sound-too-loud-and-rules-should-change-says-regulator |title=TV ads sound too loud and rules should change, says regulator |website=Out-Law News |publisher=Pinsent Masons |language=en-GB |access-date=2019-11-03}}</ref>
In recent years ([[as of 2006]]), record companies have been increasing the overall volume of commercial albums (particularly [[rock and roll|rock music]] and [[pop music]]) by using higher and higher degrees of compression during [[mastering]], sometimes impacting sound quality.[http://www.prorec.com/prorec/articles.nsf/articles/8A133F52D0FD71AB86256C2E005DAF1C] This phenomenon has been referred to as the "[[loudness war]]".
 
=== Over-usage ===
Most television commercials are compressed heavily in order to achieve near-maximum perceived loudness while staying within permissible limits.
[[File:Cd loudness trend-something.gif|right|thumb|305px|The trend of increasing loudness as shown by waveform images of the song "[[Something (Beatles song)|Something]]" by [[The Beatles]] mastered on CD four times since 1983]]
{{See also|Loudness war}}
 
Record companies, mixing engineers and mastering engineers have been gradually increasing the overall [[loudness]] of commercial albums. This is achieved by using higher degrees of compression and limiting during [[Audio mixing (recorded music)|mixing]] and [[Audio mastering|mastering]]; compression algorithms have been engineered specifically to accomplish the task of maximizing audio level in the digital stream. Hard limiting or [[clipping (audio)|clipping]] can result, affecting the tone and timbre of the music. The effort to increase loudness has been referred to as the [[loudness war]].
== Other uses ==
 
=== Other uses ===
A compressor is sometimes used to reduce the dynamic range of a signal for transmission, to be expanded afterwards. This reduces the effects of a channel with limited dynamic range. See [[Companding]].
[[Noise reduction system]]s use a compressor to reduce the dynamic range of a signal for transmission or recording, expanding it afterward, a process called [[companding]]. This reduces the effects of a channel or recording medium with limited dynamic range.
 
[[Instrument amplifier]]s often include compression circuitry to prevent sudden high-wattage peaks that could damage the speakers. [[Electric bass]] players often use compression effects, either [[effects unit]]s available in pedal, [[rackmount]] units, or built-in devices in bass amps, to even out the sound levels of their [[bassline]]s.
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 musicians use this phenomenon in a creative way, causing the mix to alter in volume rhythmically in time with the beat.
 
[[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 [[Electronic dance music|dance]] and hip-hop musicians purposefully use this phenomenon, causing the mix to alter in volume rhythmically in time with the beat.<ref>{{Cite web |url=http://www.thewhippinpost.co.uk/mixing-music/compression-audio-mixing.htm |title=Compression in Audio Music Mixing |website=The Whippinpost |access-date=2013-12-07}}</ref>
== Compressors for software audio players ==
 
[[Hearing aid]]s use a compressor to bring the audio volume into the listener's hearing range. To help the patient perceive the direction sound comes from, some hearing aids use [[binaural recording|binaural]] compression.<ref>{{Cite book |title=The textbook of hearing aid amplification |last=Sandlin |first=Robert E. |date=2000 |publisher=Singular Thomson Learning |isbn=1565939972 |edition=2nd |___location=San Diego, California |oclc=42475568}}</ref>
Some [[audio player (software)|software audio players]] support [[plugin]]s 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 [[european classical music|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.
 
Compressors are also used for [[hearing protection]] in some electronic active hearing protection [[earmuffs]] and [[earplugs]], to let sounds at ordinary volumes 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,<ref>{{cite web |url=https://www.pewpewtactical.com/best-shooting-ear-protection/ |title=10 Best Shooting Ear Protection |date=27 May 2020 |quote=They are comfy for hours with their gel caps, have easily accessible button controls, great sound cutoff and compression, and allow for earplugs if the decent 22db NRR doesn’t cut it. |access-date=2021-05-25}}</ref> and similarly for musicians to hear quiet music but be protected from loud noises such as drums or cymbal crashes.{{citation needed|date=December 2013}}
Available software includes:
*[[Foobar2000]]
 
In applications of machine learning where an algorithm is training on audio samples, dynamic range compression is a way to augment samples for a larger data set.<ref>{{Cite journal |last1=Salamon |first1=Justin |last2=Bello |first2=Juan Pablo |date=March 2017 |title=Deep Convolutional Neural Networks and Data Augmentation for Environmental Sound Classification |journal=IEEE Signal Processing Letters |volume=24 |issue=3 |pages=279–283 |arxiv=1608.04363 |doi=10.1109/LSP.2017.2657381 |bibcode=2017ISPL...24..279S |s2cid=3537408 |issn=1070-9908 }}</ref>
*[[Winamp]] plugins:
**[http://www.winamp.com/plugins/details.php?id=146189 Stereo Tool] (also available as a [[command line]] [[wav]]-to-wav tool: [http://www.hansvanzutphen.com/stereo_tool/download/ standalone version])
**[http://www.winamp.com/plugins/details.php?id=1099 Rock Steady]
**[http://www.winamp.com/plugins/details.php?id=146841 Volume Leveler 15]
**[http://www.winamp.com/plugins/details.php?id=120741 Sound Solution]
*[http://www.volumelogic.com/ Volume Logic], available for [[Windows Media Player]], [[iTunes]], [[RealPlayer]], and other platforms
 
== Limiting ==
The Winamp plugins can also be enabled for Windows Media Player and other players via [[ffdshow]].
[[File:Clipping compared to limiting.svg|thumb|220px|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|Limiter}}
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.<ref name="tcelectronic.com">{{Cite book |url=http://www.tcelectronic.com/media/droney_massey_2001_compres.pdf |title=Compression Applications |last1=Droney |first1=Maureen |last2=Massey |first2=Howard |date=September 2001 |publisher=[[TC Electronic]] |archive-url=https://web.archive.org/web/20101231072136/http://www.tcelectronic.com/media/droney_massey_2001_compres.pdf |archive-date=2010-12-31 |url-status=dead}}</ref>
 
''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 ''brick wall''.<ref name="tcelectronic.com" /> The sonic results of more than momentary and infrequent brick-wall limiting are harsh and unpleasant, thus it is more common as a safety device in live sound and broadcast applications.
To achieve volume-compressed playback on devices other than computer-based audio players, files may need to be processed via the above software then output as [[wav]]s, [[mp3]]s, or other audio formats.
 
Some [[bass amp]]s and [[PA system]] amplifiers include limiters to prevent sudden volume peaks from causing distortion or damaging the speakers.
== See also ==
 
== Side-chaining ==
* [[Squelch]]
[[File:Compressor Sidechain.svg|thumb|300px|The sidechain of a feed-forward compressor]]
* [[Automatic gain control]]
{{listen | filename = Uplifting Trance Sidechain.ogg| title = Uplifting Trance Sidechain| description = The first 8 bars are without side-chaining applied, the second 8 are with side-chaining. | format = [[Ogg]]}}
* [[Gain compression]]
 
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.<ref name="Colletti">{{Cite web |url=http://www.sonicscoop.com/2013/06/27/beyond-the-basics-sidechain-compression/ |title=Beyond The Basics: Sidechain Compression |last=Colletti |first=Justin |date=2013-06-27 |website=SonicScoop |access-date=2015-03-16}}</ref> An early innovator of side-chain compression in an effects unit was the [[Eventide, Inc|Eventide]] Omnipressor from 1974.<ref>{{cite web |title=50th Flashback #3: The Omnipressor |url=https://www.eventideaudio.com/blog/aagnello/50th-flashback-3-omnipressor |website=Eventide Audio |date=10 March 2021 |access-date=17 May 2021}}</ref> With side-chaining, the compressor behaves in the conventional manner when both main and side-chain inputs are supplied with the same signal.
== External links ==
 
* [http://www.wikirecording.org/Compression An overview of compression w. a more practical user friendly approach (also a wiki)]
The side-chain input is used by [[disc jockey]]s 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.
* [http://home.btconnect.com/ssa/whitepaper/whitepaper.htm Description of expansion, compression, and limiting in an audio processor]
 
* [http://www.arts.arizona.edu/studio/Compressors,LimitersExp.html Some short definitions]
A sidechain with [[equalization (audio)|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&nbsp;kHz.<ref>{{Cite magazine |last=Senior |first=Mike |date=May 2009 |title=Techniques For Vocal De-essing |url=http://www.soundonsound.com/sos/may09/articles/deessing.htm |department=Sound Advice |magazine=Sound on Sound |access-date=2015-03-16}}</ref> 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 (audio signal processing)|headroom]].<ref name="Colletti" />
* [http://www-ccrma.stanford.edu/~jos/filters/Nonlinear_Filter_Example_Dynamic.html Dynamic range compression]
 
* [http://mixonline.com/mag/audio_understanding_compressors_compression/index.html Understanding compressors and compression]
==Parallel compression==
* [http://www.prorec.com/prorec/articles.nsf/articles/8A133F52D0FD71AB86256C2E005DAF1C A discussion on how overuse of compression on modern compact discs is ruining the sound and dynamic range with particular reference to "Vapor Trails" by Rush]
 
Inserting the compressor in a parallel signal path is known as [[parallel compression]]. It is a form of upward compression that facilitates dynamic control without significant audible side effects so long as 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; The compressor significantly adds to the combined gain at low levels only.
 
== Multiband compression == <!-- [[Multiband compression]] redirects here -->
 
Multiband compressors can act differently on different frequency bands. The advantage of multiband compression over full-bandwidth compression is that problems related to a specific frequency range can be fixed without unnecessary compression in the other, unrelated frequencies. The downside is that frequency-specific compression is more complex and requires more processing capacity than full-bandwidth compression and can introduce phase issues.<ref>{{citation |url=https://www.waves.com/1lib/pdf/plugins/linear-phase-multiband-compressor.pdf |title=Waves – Linear-Phase MultiBand Software Audio Processor Users Guide |page=3 |access-date=2021-11-08}}</ref>
 
Multiband compressors work by first splitting the signal through some number of [[band-pass filters]], [[audio crossover|crossover filters]] or [[filter bank]]s. 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 signals do not create unwanted peak levels.
 
In music production, 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.
The TC Electronic Finalizer included a three band compressor and was a popular [[audio mastering]] tool around year 2000.<ref>{{citation |url=https://www.soundonsound.com/reviews/tc-electronic-finalizer-96k |title=TC Electronic Finalizer 96K |access-date=2023-12-29}}</ref>
 
On-air signal chains of [[radio station]]s commonly use multiband compressors to increase [[loudness]] while avoiding [[overmodulation]]. Having a louder sound is often considered an advantage in commercial broadcasting.
 
==Serial compression==
 
Serial compression is a technique used in [[sound recording]] and [[Audio mixing (recorded music)|mixing]]. Serial compression is achieved by using two fairly different compressors in a signal chain. One compressor generally stabilizes the [[dynamic range]] while the other aggressively compresses 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) is followed by a fast peak-sensing limiter (for overload protection). Done properly, even heavy serial compression can sound natural in a way not possible with a single compressor. It is most often used to even out erratic [[vocal]]s and [[guitar]]s.
 
== Software audio players ==
 
Some [[audio player (software)|software audio players]] support [[Plug-in (computing)|plugins]] that implement compression. These can increase loudness of audio tracks, or level out the volume of highly-variable music (such as [[classical music]], or a playlist that spans multiple music types). This improves the listenability of audio played through poor-quality speakers, or when played in noisy environments (such as in a car or during a party).
 
== Objective influence on the signal ==
 
In an article published in January 2014 by the ''Journal of the Audio Engineering Society'', 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, Sonnox Oxford Limiter, Thomas Mundt's Loudmax, Blue Cat's Protector, as well as four software compressors: Waves H-Comp, Sonnox Oxford Dynamics, Sonalksis SV-3157, and URS 1970. The study provides objective data on what limiters and compressors do to the audio signal.<ref name="DerutyTardieuAES">{{Cite journal |last1=Deruty |first1=Emmanuel |last2=Tardieu |first2=Damien |date=2014-02-03 |title=About Dynamic Processing in Mainstream Music |journal=Journal of the Audio Engineering Society |language=en |volume=62 |issue=1/2 |pages=42–55 |doi=10.17743/jaes.2014.0001 }}</ref>
 
Five signal descriptors were considered: [[RMS power]], [[EBU R 128]] integrated loudness,<ref name="EBU3341" /> [[crest factor]], R 128 LRA,<ref name="EBU3342" /> and density of clipped samples. RMS power accounts for the signal's physical level, R 128 loudness for the perceived level.<ref name="EBU3341" /> The crest factor, which is the difference between the signal's peak and its average power,<ref name="DerutyTardieuAES" /> is on occasions considered as a basis for the measure of micro-dynamics, for instance in the ''TT Dynamic Range Meter'' plug-in.<ref>{{Cite conference |last=Vickers |first=Earl |date=4–7 November 2010 |title=The Loudness War: Background, Speculation and Recommendations |url=http://www.sfxmachine.com/docs/loudnesswar/loudness_war.pdf |conference=129th AES Convention |___location=San Francisco |publisher=[[Audio Engineering Society]] |access-date=July 14, 2011}}</ref> Finally, R 128 LRA has been repeatedly considered as a measure of macro-dynamics or dynamics in the musical sense.<ref name="DerutyTardieuAES" /><ref name="SOS_Dynamic_Range">{{Cite magazine |last=Deruty |first=Emmanuel |date=September 2011 |title='Dynamic Range' & The Loudness War |url=https://www.soundonsound.com/sound-advice/dynamic-range-loudness-war |magazine=Sound on Sound |access-date=2013-10-24}}</ref><ref>{{Cite journal |last1=Serrà |first1=J |last2=Corral |first2=A |last3=Boguñá |first3=M |last4=Haro |first4=M |last5=Arcos |first5=JL |date=26 July 2012 |title=Measuring the Evolution of Contemporary Western Popular Music |journal=Scientific Reports |volume=2 |article-number=521 |arxiv=1205.5651 |bibcode=2012NatSR...2..521S |doi=10.1038/srep00521 |pmc=3405292 |pmid=22837813 }}</ref><ref>{{Cite journal |last1=Hjortkjær |first1=Jens |last2=Walther-Hansen |first2=Mads |date=2014-02-03 |title=Perceptual Effects of Dynamic Range Compression in Popular Music Recordings |journal=Journal of the Audio Engineering Society |volume=62 |issue=1/2 |pages=37–41 |doi=10.17743/jaes.2014.0003 }}</ref><ref>{{Cite journal |last=Skovenborg |first=Esben |date=2012-04-26 |title=Loudness Range (LRA) - Design and Evaluation |url=http://www.aes.org/e-lib/browse.cfm?elib=16254 |language=en |publisher=Audio Engineering Society |url-access=subscription |access-date=2019-11-04 |via=AES E-Library}}</ref>
 
=== Limiters ===
 
The tested limiters had the following influence on the signal:
* increase of RMS power,
* increase of EBU R 128 loudness,
* decrease of crest factor,
* decrease of EBU R 128 LRA, but only for high amounts of limiting,
* increase of clipped sample density.
 
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&nbsp;ms) in one case, and a slow attack (50&nbsp;ms) in the other. Make-up gain is deactivated, but the resulting file is normalized.
 
Set with a fast attack, the tested compressors had the following influence on the signal:
* slight increase of RMS power,
* slight increase of EBU R 128 loudness,
* decrease of crest factor,
* decrease of EBU R 128 LRA,
* slight decrease of clipped sample density.
 
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:
* decrease of RMS power,
* decrease of EBU R 128 loudness,
* no influence on crest factor,
* decrease of EBU R 128 LRA,
* no influence on clipped sample density.
 
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 ==
* [[1176 Peak Limiter]]
* [[Automatic gain control]]
* [[Gain compression]], similar (but generally undesired) reductions in waveform gain, caused by amplifier circuit imperfections
* [[LA-2A Leveling Amplifier]]
* [[Squelch]]
* [[Tone mapping]], the photographic equivalent
 
== References ==
{{Reflist}}
 
== External links ==
<references/>
* {{webarchive |url=https://web.archive.org/web/20190605192013/http://home.btconnect.com/ssa/whitepaper/whitepaper.htm |title=Description of expansion, compression, and limiting in an audio processor}}
* [https://web.archive.org/web/20070707155321/http://www-ccrma.stanford.edu/~jos/filters/Nonlinear_Filter_Example_Dynamic.html Dynamic range compression]
* [http://www.sweetwater.com/expert-center/techtips/d--03/20/2002 Article on Optical Compressors] from [[Sweetwater Sound]]
* [https://www.youtube.com/watch?v=STtSV-QHxVM Information on Compression in Home Recording]
 
{{Music production}}
[[Category:Sound technology]]
[[Category:Audio engineering]]
 
{{DEFAULTSORT:Dynamic Range Compression}}
[[da:Kompressor (signalbehandling)]]
[[Category:Audio engineering]]
[[de:Kompressor (Musik)]]
[[Category:Dynamics processing]]
[[fr:Compression de sons]]
[[nl:Compressor (geluid)]]
[[pl:Ekspansja dynamiczna]]
[[pt:Compressor (efeito)]]
[[fi:Kompressointi]]
[[sv:Kompressor (ljudteknik)]]