@audio/spatial-haas
v1.1.3
Published
Haas effect — delays one channel by 1–35 ms to create phantom stereo image
Readme
@audio/spatial-haas

Haas effect — delays one channel by 1–35 ms to create phantom stereo image
npm install @audio/spatial-haasimport haas from '@audio/spatial-haas'Delays one channel by a short interval (precedence effect range, 1–35 ms) to widen a mono or near-mono source into a phantom stereo image without changing tonal balance. Modifies left/right in place; the delay buffer/pointer are carried on params.
haas(left, right, { time: 0.02, channel: 'right' }) // both modified in place| Param | Default | |
|---|---|---|
| time | 0.02 | Delay, seconds (1–35 ms is the precedence-effect range) |
| channel | 'right' | Which channel is delayed: 'left' or 'right' |
| fs | 44100 | Sample rate |
Use when: widening a mono source cheaply; reuse the same params object across calls — the delay buffer persists there.
Part of @audio/spatial — the spatial family umbrella.
MIT © audiojs
