@audio/eq-highshelf
v1.1.1
Published
High-shelf filter — boost or cut above a corner frequency
Downloads
452
Readme
@audio/eq-highshelf

RBJ high-shelf filter — boost or cut above a corner frequency
npm install @audio/eq-highshelfimport highShelf from '@audio/eq-highshelf'RBJ Audio-EQ-Cookbook shelf biquad, via @audio/biquad. One section, no cascade — fc is the shelf's mid-point (half the gain is reached there), Q sets slope.
let params = { fc: 4000, gain: -6, fs: 44100 }
for (let buf of stream) highShelf(buf, params)| Param | Default | |
|---|---|---|
| fc | 4000 | Corner frequency, Hz |
| gain | 0 | Shelf gain, dB (positive boosts, negative cuts) |
| Q | 0.707 | Shelf slope (1 = RBJ "shelf slope = 1", steepest monotonic; lower is gentler) |
| fs | 44100 | Sample rate, Hz |
Pass the same params object across successive calls — coefficients and filter memory are cached on it and only rebuilt when fc/gain/Q/fs change, so state carries across block boundaries automatically.
Use when: brightening or dulling above a corner frequency — air band, presence, de-harsh; the top half of a Baxandall-style tone stack.
Part of @audio/eq — the eq family umbrella.
MIT © audiojs
