17  Stereo Panning, Channel Splitting, and Merging

The Web Audio API includes a stereo panner node that lets you pan input sources to any part of the stereo field. It also includes nodes that let you split multichannel audio files into separate channels as well as merge multichannel input sources into a specified output channel. In this chapter, you will learn how to use these nodes to manipulate multichannel input sources.

Images  The Stereo Panner Node

To use the stereo panner node, you first invoke createStereoPanner() and store the returned object in a variable.

var stereoPanner = audioContext.createStereoPanner();

You can then connect any input ...

Get JavaScript for Sound Artists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.