audio

@audio/spatial1.3.0

Panner, widener, crossfeed

Status
calibrated
Updated
Category
effects
Licence
MIT
Dependencies
13 packages, all permissive: MIT
not read: @audio/spatial-binaural@^0.1.1 (no copy in the checkouts)
Downloads
2,135 last month
Tests
66 in audiojs/spatial's CI, passed at 656b55c,

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').widener()

// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html

Plugins

ambisonic-decoder
  • effect
  • streaming
2 parameters
ambisonic-panner
  • effect
  • streaming
3 parameters
ambisonic-rotate
  • effect
  • streaming
3 parameters
autopan
  • effect
  • streaming
2 parameters
binaural
  • effect
  • streaming
  • tail
4 parameters
haas
  • effect
  • streaming
  • tail
2 parameters
microshift
  • effect
  • streaming
  • tail
2 parameters
midside
  • effect
  • streaming
2 parameters
panner
  • effect
  • streaming
1 parameter
surround
  • effect
  • streaming
  • tail
2 parameters
widener
  • effect
  • streaming
1 parameter

Spatial & channel tools — stereo imaging, panning, headphone crossfeed, ambisonics.

Package Status What
@audio/spatial-ambisonic ✔ Ambisonics — encode / rotate / decode, 1st–3rd order (HOA), ACN/SN3D (AmbiX), FuMa conversion, binaural via spatial-binaural, DirAC direction analysis
@audio/spatial-panner ✔ equal-power stereo panner
@audio/spatial-widener ✔ mid/side stereo widener
@audio/spatial-haas ✔ Haas precedence effect
@audio/spatial-autopan ✔ LFO-driven auto-panner
@audio/spatial-crossfeed ✔ headphone crossfeed
@audio/spatial-binaural ✔ structural binaural panner (Brown-Duda ITD + head-shadow ILD, no HRIR)
@audio/spatial-midside planned M/S encode-decode
@audio/spatial-channelsplit planned channel split/combine (FFmpeg channelsplit)
@audio/spatial-delay planned per-channel delay (FFmpeg adelay)
@audio/spatial-surround planned stereo → 5.1 upmix

Extracted from effect (spatial/) and filter (eq/crossfeed). FFmpeg-parity targets: stereotools, stereowiden, extrastereo, bs2b.

spatial-binaural is azimuth-only (ITD + head-shadow ILD, per Brown & Duda 1998 eq. 2-5). Elevation is not implemented: the paper's pinna-echo model (eq. 8, Table I) has a per-listener-fitted scaling factor, not a general physical constant, and the paper itself flags it as unvalidated near 90° elevation — using someone's individual calibration as a fake default would misrepresent it as physics, so this atom omits it rather than invent generic coefficients.