equalization -凯发k8网页登录

main content

equalization

equalization (eq) is the process of weighting the frequency spectrum of an audio signal.

you can use equalization to:

  • enhance audio recordings

  • analyze spectral content

types of equalization include:

  • lowpass and highpass filters –– attenuate high frequency and low frequency content, respectively.

  • low-shelf and high-shelf equalizers –– boost or cut frequencies equally above or below a desired cutoff point.

  • parametric equalizers –– selectively boost or cut frequency bands. also known as peaking filters.

  • graphic equalizers –– selectively boost or cut octave or fractional octave frequency bands. the bands have standards-based center frequencies. graphic equalizers are a special case of parametric equalizers.

this tutorial describes how audio toolbox™ implements the design functions: , , and . the system object™ combines the filter design functions into a multiband parametric equalizer. the system object combines the filter design functions and the system object for standards-based graphic equalization. for a tutorial focused on using the design functions in matlab®, see parametric equalizer design.

equalization design using audio toolbox

equalizer type and design parametersmagnitude response examples

use to create lowpass and highpass filters.

design parameters of designvarslopefilter include:

  • normalized cutoff frequency

  • slope (db/octave)

lowpass

highpass

use to create low-shelf and high-shelf equalizers

design parameters of designshelvingeq include:

  • gain (db)

  • normalized cutoff frequency

  • slope (db/octave)

low-shelf

high-shelf

use to create parametric equalizers. you can design single-band parametric equalizers or a cascade of parametric equalizers. using a cascade of parametric equalizers enables you to tune your frequency response with precision.

design parameters of designparameq include:

  • number of equalizer bands

  • gain (db)

  • normalized bandwidth

  • normalized center frequency

  • filter order

parametric equalizer

cascade of parametric equalizers

eq filter design

audio toolbox design functions use the bilinear transform method of digital filter design to determine your equalizer coefficients. in the bilinear transform method, you:

  1. choose an analog prototype.

  2. specify filter design parameters.

  3. perform the bilinear transformation.

analog low-shelf prototype

audio toolbox uses the high-order parametric equalizer design presented in [1]. in this design method, the analog prototype is taken to be a low-shelf butterworth filter:

ha(s)=[gβ sβ s]ri=1l[g2β2 2gsiβs s2β2 2siβs s2]

l = number of analog sos sections

n = analog filter order

r={0neven1nodd

g=g1/n

β=ωb×(g2gb2gb21)1n=tan(πδω2)×(g2gb2gb21)1n, where δω is the desired digital bandwidth

si=sin((2i1)π2n),i=1,2,...,l

for parametric equalizers, the analog prototype is reduced by setting the bandwidth gain to the square root of the peak gain (gb = sqrt(g)).

after the design parameters are specified, the analog prototype is transformed directly to the desired digital equalizer by a bandpass bilinear transformation:

s=12cos(ω0)z1 z21z2

ω0 is the desired digital center frequency.

this transformation doubles the filter order. every first-order analog section becomes a second-order digital section. every second-order analog section becomes a fourth-order digital section. audio toolbox always calculates fourth-order digital sections, which means that returning second-order sections requires the computation of roots, and is less efficient.

digital coefficients

the digital transfer function is implemented as a cascade of second-order and fourth-order sections.

h(z)=[b00 b01z1 b02z21 a01z1 a02z2]ri=1l[bi0 bi1z1 bi2z2 bi3z3 bi4z41 ai1z1 ai2z2 ai3z3 ai4z4]

the coefficients are given by performing the bandpass bilinear transformation on the analog prototype design.

second-order section coefficientsfourth-order section coefficients

d0=β 1b00=(1 gβ)/d0b01=2cos(ω0)/d0b02=(1gβ)/d0a01=2cos(ω0)/d0a02=(1β)/d0

di=β2 2siβ 1bi0=(g2β2 2gsiβ 1)/dibi1=4c0(1 gsiβ)/dibi2=2(1 2cos2(ω0)g2β2)/dibi3=4c0(1gsiβ)/dibi4=(g2β22gsiβ 1)/diai1=4c0(1 siβ)/diai2=2(1 2cos2(ω0)β2)/diai3=4cos(ω0)(1siβ)/diai4=(β22siβ 1)/di

biquadratic case.  in the biquadratic case, when n = 1, the coefficients reduce to:

d0=ωbg 1b00=(1 ωbg)/d0,b01=2cos(ω0)/d0,b02=(1ωbg)/d0a01=2cos(ω0)/d0,a02=(1ωbg)/d0

denormalizing the a00 coefficient, and making substitutions of a =sqrt(g), ωbα yields the familiar peaking eq coefficients described in [2].

orfanidis notes the approximate equivalence of ωb and α in [1].

by using trigonometric identities,

ωb=tan(δω2)=sin(ω0)sinh(ln22b),

where b plays the role of an equivalent octave bandwidth.

bristow-johnson obtained an approximate solution for b in [4]:

b=ω0sinω0×bw

substituting the approximation for b into the ωb equation yields the definition of α in [2]:

α=sin(ω0)sinh(ln22×ω0sinω0×bw)

lowpass and highpass filter design

analog low-shelf prototype

to design lowpass and highpass filters, audio toolbox uses a special case of the filter design for parametric equalizers. in this design, the peak gain, g, is set to 0, and gb2 is set to 0.5 (–3 db cutoff). the cutoff frequency of the lowpass filter corresponds to 1 – ωb. the cutoff frequency of the highpass filter corresponds to ωb.

digital coefficients

the table summarizes the results of the bandpass bilinear transformation. the digital center frequency, ω0, is set to π for lowpass filters and 0 for highpass filters.

second order section coefficientsfourth order section coefficients

d0=1 tan(πδω2)b00=1/d0b01=2cos(ω0)/d0b02=1/d0a01=2cos(ω0)/d0a02=(1tan(πδω2))/d0

di=tan2(πδω2) 2sitan(πδω2) 1bi0=1/dibi1=4cos(ω0)/dibi2=2(1 2cos2(ω0))/dibi3=4cos(ω0)0/dibi4=1/diai1=4cos(ω0)(1 sitan(πδω2))/diai2=2(1 2cos2(ω0)tan2(πδω2))/diai3=4cos(ω0)(1sitan(πδω2))/diai4=(tan2(πδω2)2sitan(πδω2) 1)/di

shelving filter design

analog prototype

audio toolbox implements the shelving filter design presented in [2]. in this design, the high-shelf and low-shelf analog prototypes are presented separately:

hl(s)=a(as2 (aq)s 1s2 (aq)s a)hh(s)=a(s2 (aq)s aas2 (aq)s 1)

for compactness, the analog filters are presented with variables a and q. you can convert a and q to available audio toolbox design parameters:

a=10g/401q=(a 1a)(1slope1) 2

after you specify the design parameters, the analog prototype is transformed to the desired digital shelving filter by a bilinear transformation with prewarping:

s=(z1z 1)×(1tan(ω02))

digital coefficients

the table summarizes the results of the bilinear transformation with prewarping.

low-shelfhigh-shelfintermediate variables

b0=a((a 1)(a1)cos(ω0) 2αa)b1=2a((a1)(a 1)cos(ω0))b2=a((a 1)(a1)cos(ω0)2αa)a0=(a 1) (a1)cos(ω0) 2αaa1=2((a1) (a 1)cos(ω0))a2=(a 1) (a1)cos(ω0)2αa

b0=a((a 1) (a1)cos(ω0) 2αa)b1=2a((a1) (a 1)cos(ω0))b2=a((a 1) (a1)cos(ω0)2αa)a0=(a 1)(a1)cos(ω0) 2αaa1=2((a1) (a 1)cos(ω0))a2=(a 1)(a1)cos(ω0)2αa

α=sin(ω0)2(a 1a)(1slope1) 2aω0=2πcutofffrequencyfs

references

[1] orfanidis, sophocles j. "high-order digital parametric equalizer design." journal of the audio engineering society. vol. 53, november 2005, pp. 1026–1046.

[2] bristow-johnson, robert. "cookbook formulae for audio eq biquad filter coefficients." accessed march 02, 2016. http://www.musicdsp.org/files/audio-eq-cookbook.txt.

[3] orfanidis, sophocles j. introduction to signal processing. englewood cliffs, nj: prentice hall, 2010.

[4] bristow-johnson, robert. "the equivalence of various methods of computing biquad coefficients for audio parametric equalizers." presented at the 97th convention of the aes, san francisco, november 1994, aes preprint 3906.

see also

| | | |

related topics

网站地图