@audio/ eq-graphic
Status calibrated
npm1.2.4licenseMIT
Graphic equalizer using ISO octave-band center frequencies
ISO 266 10-band graphic equalizer
import graphicEq from '@audio/eq-graphic'
Fixed 10-band graphic EQ at the ISO 266 / IEC 61260 1/1-octave nominal center frequencies — 31.5, 63, 125, 250, 500, 1000, 2000, 4000, 8000, 16000 Hz. One RBJ peaking biquad per non-zero band (Q 1.4), cascaded low-to-high; bands left at 0 dB build no filter section, so an all-flat EQ costs nothing.
let params = { gains: { 1000: 6, 8000: -3 }, fs: 44100 }
for (let buf of stream) graphicEq(buf, params)
| Param | Default | |
|---|---|---|
gains |
{} |
Per-band gain in dB, keyed by center frequency (e.g. 1000) or its rounded form |
fs |
44100 |
Sample rate, Hz |
Pass the same params object across successive calls — the filter cascade is cached on it; a change of gains/fs by value rebuilds only the coefficients and each band's state carries over, so state continues across block boundaries and automation is click-free.
Use when: the classic mixing-console/PA slider EQ — fixed bands, familiar layout, quick broad-strokes shaping.
Part of @audio/eq — the eq family umbrella.
MIT © audiojs