1 class:: NumRunningSynths
2 summary:: Number of currently running synths.
3 related:: Classes/NumAudioBuses, Classes/NumControlBuses, Classes/NumBuffers, Classes/NumInputBuses, Classes/NumOutputBuses
4 categories:: UGens>Info
9 Number of currently running synths.
20 // example: frequency is derived from the number of synths running
22 SynthDef("numRunning", { arg out;
23 Out.ar(out, SinOsc.ar(NumRunningSynths.ir * 200 + 400, 0, 0.1));
27 s.sendMsg("/s_new", "numRunning", -1, 0, 0);
28 s.sendMsg("/s_new", "numRunning", -1, 0, 0);
29 s.sendMsg("/s_new", "numRunning", -1, 0, 0);
30 s.sendMsg("/s_new", "numRunning", -1, 0, 0);