@audio/denoise-dehum
v0.1.7
Published
Mains hum / tonal noise removal via cascaded high-Q biquad notches
Readme
@audio/denoise-dehum

Mains hum / tonal noise removal via cascaded high-Q biquad notches
npm install @audio/denoise-dehumimport dehum from '@audio/denoise-dehum'Cascade of high-Q biquad notches at the fundamental + harmonics.
dehum(data, { freq: 60, harmonics: 4 })
dehum(data, { freq: 50, adaptive: true, drift: 0.5 }) // tracks slow mains drift| Param | Default | |
|---|---|---|
| freq | 50 | Fundamental (Hz) |
| harmonics | 4 | Number of notches placed |
| Q | 30 | Notch sharpness — higher = narrower |
| adaptive | false | Goertzel sweep refines freq ± drift Hz |
Use when: mains buzz, ground-loop hum, fixed tonal interference.
Not for: broadband noise (use wiener/omlsa); shifting tones (use spectral methods).
Part of @audio/denoise — the denoise family umbrella. This README is generated from the umbrella docs.
MIT © audiojs
