Skip to content
Tone.js

connect

function

connect(srcNode: OutputNode, dstNode: InputNode, outputNumber?: number, inputNumber?: number): void

Connect two nodes together so that signal flows from the first node to the second. Optionally specify the input and output channels.

Parameters

  • srcNode OutputNode

    The source node

  • dstNode InputNode

    The destination node

  • outputNumber number optional default 0

    The output channel of the srcNode

  • inputNumber number optional default 0

    The input channel of the dstNode