Spatial panning

Move a source from left to right through three-dimensional space.

npx web-audio-api spatial -d 5s
-d, --duration <time>
run time (CLI accepts s/m/h suffixes; default: 3s)
ready

This is a 3D spatial audio panning example built on PannerNode and AudioListener: a source moves through three-dimensional space from left to right. Try it in the browser, or render the same spatialized graph from the Node CLI.