Presets
Playback
Signal, bands and preamp
Camera
Layers
Quality
Model check
The science
What is modelled
A 10-band graphic equalizer, as in a studio rack: ten peaking (bell) filters centred on octave-spaced frequencies from 31 Hz to 16 kHz, cascaded, plus a preamp. Each fader sets the boost or cut (-12 to +12 dB) of one band; all bands share the filter quality factor Q. The filters are the standard second-order digital biquads from the Audio EQ Cookbook (Robert Bristow-Johnson).
Equations
- Peaking biquad:
A = 10^(g/40),w0 = 2 pi f0 / fs,alpha = sin(w0) / (2 Q);b0 = 1 + alpha A,b1 = a1 = -2 cos w0,b2 = 1 - alpha A,a0 = 1 + alpha / A,a2 = 1 - alpha / A. - Transfer function:
H(z) = (b0 + b1 z^-1 + b2 z^-2) / (a0 + a1 z^-1 + a2 z^-2), evaluated on the unit circlez = e^(j w); magnitude in dB is20 log10 |H|. At the centre frequency the gain equals exactlygdB. - Cascade: the total response is the product of the band responses, i.e. their dB values add (with the preamp); the phase is the sum of the band phases (minimum-phase filters, so a boost brings a phase lead then lag).
- Time domain: the impulse response is obtained by running the difference equation
y[n] = b0 x[n] + b1 x[n-1] + b2 x[n-2] - a1 y[n-1] - a2 y[n-2](transposed direct form II) at 48 kHz; narrower bands (higher Q) and larger gains ring longer. - Display bands: 40 log-spaced bands from 20 Hz to 20 kHz. Pink noise has equal energy per octave, so it looks flat on a log display; white noise has equal energy per Hz, so it rises 3 dB per octave.
Checks run in the page
- A single +9 dB band gives exactly +9 dB at its centre frequency and almost nothing five octaves away.
- The DFT of the impulse response computed from the difference equation matches the analytic
H(z)within 0.02 dB at ten frequencies. - The browser's own
BiquadFilterNode.getFrequencyResponsefor the same ten filters agrees with this page's cascade within 0.05 dB at 48 frequencies.
Honest simplifications
Without sound, the LED display shows a model of the chosen test signal (pink and white noise, a sweep, a chord or a beat) multiplied by the analytic equalizer response; with Sound on it shows the real FFT of the audio that passed through ten Web Audio filters. The band levels are relative and not calibrated to a particular meter standard. Real graphic equalizers use fixed or constant-Q designs that differ in how neighbouring bands interact; this is a parametric-style bell for every band. Speaker cone motion is a visual cue driven by the displayed low- and high-band levels, not a loudspeaker model. The rack, faders, knob and speakers were modelled and baked in Blender; none of it is a particular product.
What to try
- Load "Notch at 1 kHz" and play the sweep: the sweep dips as it passes 1 kHz; compare the magnitude and impulse-response graphs.
- Raise Q from 0.5 to 4 and watch the ringing in graph 4 and the narrower bell in graph 1.
- Use the Bypass lamp to A/B any preset by ear (with Sound on) and by eye.
- Play pink and white noise through a flat EQ to see why one looks flat and the other tilts.
- Drag faders directly in the 3D view; the sliders follow.