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 parameters | magnitude response examples | |
---|---|---|
use to create lowpass and highpass filters. design parameters of
| lowpass | highpass |
use to create low-shelf and high-shelf equalizers design
parameters of
| 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
| 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:
choose an analog prototype.
specify filter design parameters.
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:
= number of analog sos sections
= analog filter order
, where δω is the desired digital bandwidth
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:
ω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.
the coefficients are given by performing the bandpass bilinear transformation on the analog prototype design.
second-order section coefficients | fourth-order section coefficients |
---|---|
|
|
biquadratic case. in the biquadratic case, when n = 1, the coefficients reduce to:
denormalizing the a00 coefficient, and making substitutions of a =sqrt(g), yields the familiar peaking eq coefficients described in [2].
orfanidis notes the approximate equivalence of ωb and in [1].
by using trigonometric identities,
where b plays the role of an equivalent octave bandwidth.
bristow-johnson obtained an approximate solution for b in [4]:
substituting the approximation for b into the ωb equation yields the definition of in [2]:
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 coefficients | fourth order section coefficients |
---|---|
|
|
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:
for compactness, the analog filters are presented with variables a and q. you can convert a and q to available audio toolbox design parameters:
after you specify the design parameters, the analog prototype is transformed to the desired digital shelving filter by a bilinear transformation with prewarping:
digital coefficients
the table summarizes the results of the bilinear transformation with prewarping.
low-shelf | high-shelf | intermediate variables |
---|---|---|
|
|
|
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
| | | |