Listen
// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
audio('/samples/music/modern/local-forecast.mp3').dcblocker()
// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
Parameters
R- 0.995
- 0.9 to 0.9999
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