@audio/ filter-dcblocker
Status calibrated
npm1.1.3licenseMIT
DC blocking filter
import dcBlocker from '@audio/filter-dcblocker'
Removes DC offset — the simplest useful filter.
Topology: zero at (DC), pole at
Cutoff: — gives ~35 Hz at 44.1 kHz
let params = { R: 0.995 }
dcBlocker(buffer, params)
| Param | Default | |
|---|---|---|
R |
0.995 |
pole radius — closer to 1 pushes the cutoff lower |
Pass the same params object on every call to persist the one-pole state across blocks.
Use when: removing DC bias before processing, preventing lowpass filter saturation.
Part of @audio/filter — the filter family umbrella. This README is generated from the umbrella docs.
MIT © audiojs