Skip to content
Tone.js

connectSignal

function

connectSignal(signal: OutputNode, destination: InputNode, outputNum?: number, inputNum?: number): void

When connecting from a signal, it’s necessary to zero out the node destination node if that node is also a signal. If the destination is not 0, then the values will be summed. This method insures that the output of the destination signal will be the same as the source signal, making the destination signal a pass through node.

Parameters

  • signal OutputNode

    The output signal to connect from

  • destination InputNode

    the destination to connect to

  • outputNum number optional

    the optional output number

  • inputNum number optional

    the input number