connect
function
connect(srcNode: OutputNode, dstNode: InputNode, outputNumber?: number, inputNumber?: number): voidConnect two nodes together so that signal flows from the first node to the second. Optionally specify the input and output channels.
Parameters
-
srcNode
OutputNodeThe source node
-
dstNode
InputNodeThe destination node
-
outputNumber
numberoptional default0The output channel of the srcNode
-
inputNumber
numberoptional default0The input channel of the dstNode