Skip to content
Tone.js

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();;
new Merge(channels?: number)

Parameters

  • channels number optional

    The number of channels to merge.

new Merge(options?: Partial<MergeOptions>)

Parameters

read-only

input: ChannelMergerNode

Multiple input connections combine into a single output.

read-only

name: string

The name of the class

Default: "Merge"

read-only

output: ChannelMergerNode

The output is the input channels combined into a single (multichannel) output

dispose(): this

Dispose and disconnect

Returns this

static

getDefaults(): MergeOptions

Returns all of the default options belonging to the class.

Returns MergeOptions