@audio/denoise-declip
v0.1.7
Published
De-clip — restore samples that have been hard-clipped at ±threshold
Readme
@audio/denoise-declip

De-clip — restore samples that have been hard-clipped at ±threshold
npm install @audio/denoise-declipimport declip from '@audio/denoise-declip'Detects runs of samples at ±clipLevel, fits AR on the un-clipped neighbourhood, extrapolates a sign-constrained interpolation.
declip(data, { clipLevel: 0.95 }) // explicit threshold
declip(data) // auto-detects clip level| Param | Default | |
|---|---|---|
| clipLevel | auto | Detected from histogram of |x| > 0.5 |
| order | 100 | AR model order |
| maxRun | order/2 | Longest run that gets restored |
Use when: hard digital clipping with short clip runs. Not for: sustained clipping covering many cycles (use sparsity-based methods).
Part of @audio/denoise — the denoise family umbrella. This README is generated from the umbrella docs.
MIT © audiojs
