@audio/ eq-highshelf
Status calibrated
npm1.1.2licenseMIT
High-shelf filter — boost or cut above a corner frequency
RBJ high-shelf filter — boost or cut above a corner frequency
import 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; a change of fc/gain/Q/fs rebuilds only the coefficients and the memory carries over, so state continues across block boundaries and automation is click-free.
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