A second-order biquad low-pass filter attenuates frequencies above a specified cutoff while allowing lower frequencies to pass through, using a combination of two poles and two zeros to shape the frequency response. It is implemented using a difference equation with feedback and feedforward coefficients, offering precise control over gain, cutoff frequency, and resonance (Q factor).
Try it
Drag the sliders to see how the magnitude and phase response change. Sample rate is 48 kHz; the dashed line marks \(f_{0}\), and the normalized coefficients update live.
Formulae
In order to construct a biquad low pass filter, the sample rate, cutoff frequency, and Q-factor need to be provided. From those, the coefficients for the underlying filter can be calculated.
First, some intermediate values are calculated:
\(\displaystyle ω_{0} = 2π{f_{0} \over F_{s}}\)
\(\displaystyle α = {sin(ω_{0}) \over {2Q}}\)
Where \(f_{0}\) is the cutoff frequency, \(F_{s}\) is the sample rate, and \(Q\) is the Q-factor.
Since Q-factor is a unit-less value and is a little hard to quantify, sometimes it is easier to provide bandwidth instead. Bandwidth can be converted to the Q-factor by using the formula: