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);
Constructor
Section titled “Constructor”new Split(channels?: number)Parameters
-
channels
numberoptionalThe number of channels to merge.
new Split(options?: Partial<SplitOptions>)Parameters
- options
Partial<SplitOptions>optional
Properties
Section titled “Properties”read-only
input: ChannelSplitterNodeThe input node or nodes. If the object is a source, it does not have any input and this.input is undefined.
output
Section titled “output”read-only
output: ChannelSplitterNodeThe output nodes. If the object is a sink, it does not have any output and this.output is undefined.
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): SplitOptionsReturns all of the default options belonging to the class.
Returns SplitOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), connect(), disconnect(), fan(), toDestination(), toMaster()