connectSignal
function
connectSignal(signal: OutputNode, destination: InputNode, outputNum?: number, inputNum?: number): voidWhen 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
OutputNodeThe output signal to connect from
-
destination
InputNodethe destination to connect to
-
outputNum
numberoptionalthe optional output number
-
inputNum
numberoptionalthe input number