Merge
class Component ↳ extends ToneAudioNode<MergeOptions>
Merge brings multiple mono input channels into a single multichannel output channel.
const merge = new Tone.Merge().toDestination(); // routing a sine tone in the left channel const osc = new Tone.Oscillator().connect(merge, 0, 0).start(); // and noise in the right channel const noise = new Tone.Noise().connect(merge, 0, 1).start();;
Constructor
Section titled “Constructor”new Merge(channels?: number)Parameters
-
channels
numberoptionalThe number of channels to merge.
new Merge(options?: Partial<MergeOptions>)Parameters
- options
Partial<MergeOptions>optional
Properties
Section titled “Properties”read-only
input: ChannelMergerNodeMultiple input connections combine into a single output.
output
Section titled “output”read-only
output: ChannelMergerNodeThe output is the input channels combined into a single (multichannel) output
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): MergeOptionsReturns all of the default options belonging to the class.
Returns MergeOptions
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()