Noise shaping — error-feedback dithering for bit-depth reduction
- Status
- calibrated
- Updated
- Family
- effect, 26 packages under it
- Plugin
noiseshaper, effect, streaming, 1 parameter- Category
- effects
- Licence
- MIT
- Dependencies
- none
- Downloads
- 3,128 last month
- Tests
- 138 in audiojs/effect's CI, passed at 5ff5a84,
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').noiseshaper()
// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
Parameters
bits- 16
- 1 to 24
import noiseShaping from '@audio/effect-noiseshaper'
Error-feedback quantization — shapes quantization noise out of the audible band.
bits target bit depth (default 16)
import noiseShaping from '@audio/effect-noiseshaper'
for (let buf of stream) noiseShaping(buf, { bits: 16 })
Use when: dithering before bit-depth reduction, quantization to lower bit depths
Not for: audio compression (unrelated to lossy codecs)
Part of @audio/effect — the effect family umbrella. This README is generated from the umbrella docs.
MIT © audiojs