Combining Nodes in SuperCollider

Creating and Connecting Nodes

Audio buses can be used to connect synth nodes. In this example we will create two nodes - one for generating a sound and one for processing it. First thing is an audio bus:

~aBus =,1);

The ~osc node generates a sawtooth signal and the output is routed to the audio bus:

~osc = {arg out=1;,}.play;


The second node is a simple filter. Its input is set to the index of the audio bus:

~lpf = {arg in=0;,,100))}.play;



Although everything is connected, there is no sound at this point. SuperCollider can only process such chains if the nodes are arranged in the right order. The filter node can be moved after the oscillator node:

Moving Nodes


Node Tree before moving the processor node.

The moveAfter() function is a quick way for moving a node directly after a node specified as the argument. The target node can be either referred to by its node index or by the related name in sclang:



Node Tree after moving the processor node.