audio

@audio/spatial-crossfeed1.1.1

Headphone crossfeed filter

Status
calibrated
Updated
Family
spatial, 12 packages under it
Category
effects
Licence
MIT
Dependencies
1 package, all permissive: MIT
Downloads
1,701 last month
Tests
66 in audiojs/spatial's CI, passed at 656b55c,
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