Skip to content
Tone.js

Split

class Component ↳ extends ToneAudioNode<SplitOptions>

Split splits an incoming signal into the number of given channels.

const split = new Tone.Split();
// stereoSignal.connect(split);
new Split(channels?: number)

Parameters

  • channels number optional

    The number of channels to merge.

new Split(options?: Partial<SplitOptions>)

Parameters

read-only

input: ChannelSplitterNode

The input node or nodes. If the object is a source, it does not have any input and this.input is undefined.

read-only

name: string

The name of the class

Default: "Split"

read-only

output: ChannelSplitterNode

The output nodes. If the object is a sink, it does not have any output and this.output is undefined.

dispose(): this

Dispose and disconnect

Returns this

static

getDefaults(): SplitOptions

Returns all of the default options belonging to the class.

Returns SplitOptions