@audio/ spatial-crossfeed
Status calibrated
npm1.1.1licenseMIT
Headphone crossfeed filter
import crossfeed from '@audio/spatial-crossfeed'
Bauer stereophonic-to-binaural (BS2B) crossfeed: mixes a lowpassed copy of each channel into the other, reducing the hard L/R separation that reads as unnatural over headphones. direct + cross sums to unity, so mono/correlated content stays at ~unity gain. Modifies left/right in place; requires a params object (not optional — the coefficients cache there and rebuild on fc/fs/level change).
crossfeed(left, right, { fc: 700, level: 0.3 }) // both modified in place
| Param | Default | |
|---|---|---|
fc |
700 |
Crossfeed lowpass cutoff, Hz |
level |
0.3 |
Mix amount, 0..1 |
fs |
44100 |
Sample rate |
Use when: headphone playback of stereo content mixed/mastered for speakers.
Part of @audio/spatial — the spatial family umbrella.
MIT © audiojs