DRC-动态范围控制

Basics

The dynamic range of a signal is defined as the logarithmic ratio of maximum to minimum signal amplitude and is given in decibels. The dynamic range of an audio signal lies between 40 and 120 dB. The combination of level measurement and adaptive signal level adjustment is called dynamic range control. Dynamic range control of audio signals is used in many applications to match the dynamic behavior of the audio signal to different requirements.

Figure 7.1 shows a block diagram of a sysstem for dynamic range control.After measuring the input level X d B ( n ) X_{dB}(n) XdB(n),the output level Y d B ( n ) Y_{dB}(n) YdB(n) is affected by multiplying the delayed input signal x ( n ) x(n) x(n) by a factor g ( n ) g(n) g(n) according to

y ( n ) = g ( n ) ∗ x ( n − D ) y(n) = g(n) * x(n - D) y(n)=g(n)x(nD)

The delay of the signal x ( n ) x(n) x(n) compared with the control signal g ( n ) g(n) g(n) allows predictive control of the output signal level.This multiplicative weighting is carried out with corresponding attack and release time.Multiplication leads,in terms of a logarithmic level representation of the corresponding signals,to the addition of the weighting level G d B ( n ) G_{dB}(n) GdB(n) to the input level X d B ( n ) X_{dB}(n) XdB(n),giving the output level

Y d B ( n ) = X d B ( n ) + G d B ( n ) Y_{dB}(n) = X_{dB}(n) + G_{dB}(n) YdB(n)=XdB(n)+GdB(n)

在这里插入图片描述

Static Curve

The relationship between input level and weighting level is defined bu static level curve $ G_{dB}(n) = f(X_{dB}(n)) $.An example of such a static curve is given in Fig.7.2.Here,the output level and the weughtng level are given as functions of the input level.

在这里插入图片描述

With the help of a limiter, the output level is limited when the input level exceeds the limiter threshold LT. All input levels above this threshold lead to a constant output level. The compressor maps a change of input level to a certain smaller change of output
level. In contrast to a limiter, the compressor increases the loudness of the audio signal.The expander increases changes in the input level to larger changes in the output level.With this, an increase in the dynamics for low levels is achieved. The noise gate is used to suppress low-level signals, for noise reduction and also for sound effects like truncating the decay of room reverberation. Every threshold used in particular parts of the static curve is defined as the lower limit for limiter and compressor and upper limit for expander and noise gate.

In the logarithmic representation of the static curve the compression factor R R R (ratio) is defined as the ratio of the input level change Δ P 1 \Delta P_1 ΔP1 to the output level change Δ P 0 \Delta P_0 ΔP0:

R = Δ P 1 Δ P 0 R= \frac {\Delta P_1}{\Delta P_0} R=ΔP0ΔP1

With the help of Fig.7.3 the straight line equation Y d B ( n ) = C T + R − 1 ( X d B ( n ) − C T ) Y_{dB}(n) = CT + R^{-1}(X_{dB}(n) - CT) YdB(n)=CT+R1(XdB(n)CT) and the compression factor

R = X d B ( n ) − C T Y d B ( n ) − C T = t a n β C R = \frac{X_{dB}(n) - CT}{Y_{dB}(n) - CT} = tan\beta_C R=YdB(n)CTXdB(n)CT=tanβC

are obtained,where the angle β \beta β is defined as shown in Fig.7.2.The relationship between the ratio R R R and slop S S S can also be derived from Fig.7.3 and is expressed as

S = 1 − 1 R S = 1 - \frac{1}{R} S=1R1

R = 1 1 − S R = \frac{1}{1 - S} R=1S1

在这里插入图片描述

Typical compression factors are

R = ∞ , l i m i t e r , R > 1 , c o m p r e s s o r ( C R : c o m p r e s s o r   r a t i o ) , 0 < R < 1 , e x p a n d e r ( E R : e x p a n d e r   r a t i o ) , R = 0 , n o i s e   g a t e . R = \infin, limiter, \\ R > 1, compressor(CR:compressor \ ratio), \\ 0 < R < 1, expander(ER:expander \ ratio), \\ R = 0, noise \ gate. R=,limiter,R>1,compressor(CR:compressor ratio),0<R<1,expander(ER:expander ratio),R=0,noise gate.

The transition from logarithmic to linear representation leads,from R = X d B ( n ) − C T Y d B ( n ) − C T = t a n β C R = \frac{X_{dB}(n) - CT}{Y_{dB}(n) - CT} = tan\beta_C R=YdB(n)CTXdB(n)CT=tanβC,to

R = log ⁡ 10 x ^ ( n ) C T log ⁡ 10 y ^ ( n ) C T R = \frac{\log_{10}{\frac{\hat{x}(n)}{CT}}}{\log_{10}\frac{\hat{y}(n)}{CT}} R=log10CTy^(n)log10CTx^(n)

where $ \hat{x}(n) $ and $ \hat{y}(n) $ are the linear levels and C T CT CT denotes the linear compressor threshold.Rewriting previewing formula gives the linear output level

y ^ ( n ) C T = 1 0 1 / R log ⁡ 10 ( x ^ ( n ) / C T ) = ( x ^ ( n ) C T ) 1 / R y ^ ( n ) = C T 1 − 1 / R ∗ x ^ 1 / R ( n ) \frac{\hat{y}(n)}{CT} = 10^{1/R\log_{10}(\hat{x}(n)/CT)} =\bigg(\frac{\hat{x}(n)}{CT}\bigg)^{1/R} \\ \hat{y}(n) = {CT}^{1-1/R}*\hat{x}^{1/R}(n) CTy^(n)=101/Rlog10(x^(n)/CT)=(CTx^(n))1/Ry^(n)=CT11/Rx^1/R(n)

as a function of input level.The control factor g ( n ) g(n) g(n) can be calculated by the quotient

g ( n ) = y ^ ( n ) x ^ ( n ) = ( x ^ ( n ) C T ) 1 / R − 1 g(n) = \frac{\hat{y}(n)}{\hat{x}(n)} = \bigg(\frac{\hat{x}(n)}{CT}\bigg)^{1/R-1} g(n)=x^(n)y^(n)=(CTx^(n))1/R1

With the help of tables and interpolation methods, it is possible to determine the control factor without taking logarithms and antilogarithms. The implementation described as follows, however, makes use of the logarithm of the input level and calculates the control level G d B ( n ) G_{dB}(n) GdB(n) with the help of the straight line equation. The antilogarithm leads to the value f ( n ) f(n) f(n) which gives the control factor g ( n ) g(n) g(n) with corresponding attack and release time (see Fig.7.1).

猜你喜欢

转载自blog.csdn.net/weixin_42762173/article/details/126126346