Spatial panning

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

ready

node examples/spatial.js -d 5s
-d, --duration <time>
run time (CLI accepts s/m/h suffixes; default: 3s)
Graph
Oscillator → Panner → Gain → Destination
Input
Position curve, duration
Output
Spatialized audio

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.