@audio/dynamics-limiter
v0.1.5
Published
Lookahead brickwall limiter. A sliding-window maximum (monotonic deque) over
Readme
@audio/dynamics-limiter

Lookahead brickwall limiter. A sliding-window maximum (monotonic deque) over
npm install @audio/dynamics-limiterimport limiter from '@audio/dynamics-limiter'Lookahead brickwall limiter. A sliding-window maximum over the lookahead span drives the envelope, so gain reduction always covers every sample in transit — instant attack lookahead ms before a peak emerges, exponential release after it passes.
import { limiter } from '@audio/dynamics'
limiter(data, { ceiling: -0.3 })
limiter(data, { ceiling: -1, lookahead: 10, release: 100 })| Param | Default | |
|---|---|---|
| ceiling | -0.3 | dB (brickwall) |
| lookahead | 5 | ms (introduces delay) |
| release | 50 | ms |
Use when: master bus ceiling, true-peak safety, preventing inter-sample clipping. Not for: musical dynamics shaping — use compressor. Low-latency paths — use softclip.
Part of @audio/dynamics — the dynamics family umbrella. This README is generated from the umbrella docs.
MIT © audiojs
