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: designParamEQ
, designShelvingEQ
, and designVarSlopeFilter
. The multibandParametricEQ
System object™ combines the filter design functions into a multiband parametric
equalizer. The graphicEQ
System object combines the filter design functions and the octaveFilter
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 Design parameters of
| Lowpass
| Highpass
|
Use Design
parameters of
| Low-Shelf
| High-Shelf
|
Use 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
designVarSlopeFilter
| designParamEQ
| designShelvingEQ
| multibandParametricEQ
| graphicEQ