Apex › Storage & databases

The filter inside every EQ (biquad)

The second-order IIR that is the unit cell of nearly all audio filtering — EQ bands, synth filters, tone controls, crossovers. One recursive formula, y[n] = b0·x[n] + b1·x[n-1] + b2·x[n-2] − a1·y[n-1] − a2·y[n-2], with five coefficients. They place two zeros (frequencies killed) and two poles (frequencies resonated) around the unit circle; a pole near the circle makes a sharp peak (that’s Q), and poles must stay inside it or the feedback is unstable. Retuning gives lowpass, highpass, bandpass, or notch (RBJ cookbook). Verified in node: the coefficient-derived |H(e^jω)| matches the DFT of the impulse response to 1e-15, the lowpass passes DC and blocks Nyquist, poles stay inside the unit circle, and higher Q gives a taller peak. Pick a type and sweep the cutoff and Q.

More in Storage & databases