ChannelSplitterNode

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g., for performing channel mixing where gain must be separately controlled on each channel.

Default channel splitter node with a single input splitting to form 6 mono outputs.

If your ChannelSplitterNode always has one single input, the amount of outputs is defined by a parameter on its constructor and the call to AudioContext.createChannelSplitter(). In the case that no value is given, it will default to 6. If there are fewer channels in the input than there are outputs, supernumerary outputs are silent.

EventTarget AudioNode ChannelSplitterNode
Number of inputs 1
Number of outputs variable; defaults to 6.
Channel count mode "explicit". Older implementations, as per earlier versions of the spec use "max".
Channel count Fixed to the number of outputs. Older implementations, as per earlier versions of the spec use 2 (not used in the default count mode).
Channel interpretation "discrete"

Constructor

ChannelSplitterNode()

Creates a new ChannelSplitterNode object instance.

Instance properties

No specific property; inherits properties from its parent, AudioNode.

Instance methods

No specific method; inherits methods from its parent, AudioNode.

Example

See BaseAudioContext.createChannelSplitter() for example code.

Specifications

Specification
Web Audio API
# ChannelSplitterNode

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
ChannelSplitterNode
Chrome – Full support
Chrome 14 (Release date: 2011-09-16)
footnote
footnote Starting in Chrome 56, channelCountMode is set to explicit and channelCount is fixed to the number of outputs, as per the latest spec.
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – Full support
Firefox 25 (Release date: 2013-10-29)
footnote Full support
Opera – Full support
Opera 15 (Release date: 2013-07-02)
footnote
footnote Starting in Opera 43, channelCountMode is set to explicit and channelCount is fixed to the number of outputs, as per the latest spec.
Safari – Full support
Safari 6 (Release date: 2012-07-25)
footnote Full support
Chrome Android – Full support
Chrome Android 18 (Release date: 2012-06-27)
footnote
footnote Starting in Chrome Android 56, channelCountMode is set to explicit and channelCount is fixed to the number of outputs, as per the latest spec.
Firefox for Android – Full support
Firefox for Android 25 (Release date: 2013-10-29)
footnote Full support
Opera Android – Full support
Opera Android 14 (Release date: 2013-05-21)
footnote
footnote Starting in Opera Android 43, channelCountMode is set to explicit and channelCount is fixed to the number of outputs, as per the latest spec.
Safari on iOS – Full support
Safari on iOS 6 (Release date: 2012-09-10)
footnote Full support
Samsung Internet – Full support
Samsung Internet 1 (Release date: 2013-04-27)
footnote
footnote Starting in Samsung Internet 6.0, channelCountMode is set to explicit and channelCount is fixed to the number of outputs, as per the latest spec.
WebView Android – Full support
WebView Android 4.4.3 (Release date: 2014-06-02)
footnote
footnote Starting in version 56, channelCountMode is set to explicit and channelCount is fixed to the number of outputs, as per the latest spec.
WebView on iOS – Full support
WebView on iOS 6 (Release date: 2012-09-10)
footnote Full support
ChannelSplitterNode() constructor
Chrome – Full support
Chrome 55 (Release date: 2016-12-01)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – Full support
Firefox 53 (Release date: 2017-04-19)
footnote Full support
Opera – Full support
Opera 42 (Release date: 2016-12-13)
footnote Full support
Safari – Full support
Safari 14.1 (Release date: 2021-04-26)
footnote Full support
Chrome Android – Full support
Chrome Android 55 (Release date: 2016-12-06)
footnote Full support
Firefox for Android – Full support
Firefox for Android 53 (Release date: 2017-04-19)
footnote Full support
Opera Android – Full support
Opera Android 42 (Release date: 2017-01-21)
footnote Full support
Safari on iOS – Full support
Safari on iOS 14.5 (Release date: 2021-04-26)
footnote Full support
Samsung Internet – Full support
Samsung Internet 6 (Release date: 2017-08-23)
footnote Full support
WebView Android – Full support
WebView Android 55 (Release date: 2016-12-06)
footnote Full support
WebView on iOS – Full support
WebView on iOS 14.5 (Release date: 2021-04-26)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
See implementation notes.

See also