SC Groups organize synth nodes into named sections that can be targeted for routing and order-of-execution control
Groups are named containers in the Node Tree. Synths can be added to a group with .play(target: ~group). Groups themselves can be ordered relative to each other (addAfter, addToTail). A typical pattern: ~sources group, ~effects group after sources, ~master group after effects. All synths in a group execute together before the next group, ensuring correct signal flow without specifying individual synth order. Groups also simplify freeing — freeing a group frees all its synths.
Examples
~sources = Group.new; ~effects = Group.new(~sources, \addAfter); ~master = Group.new(~effects, \addAfter); {Out.ar(~reverbBus, SinOsc.ar(440))}.play(target:~sources);
Assessment
Design a three-group node tree (sources, effects, master) for a live patch with two oscillators feeding into a reverb and then a volume control.