oneShot: free the responder before running user func (avoid error)
[supercollider.git] / HelpSource / Classes / NumRunningSynths.schelp
blobaa52729d781c8bf620be3921dd5c1aec24f617a8
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
7 Description::
9 Number of currently running synths.
12 classmethods::
14 method::ir
16 Examples::
18 code::
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)); 
24 }).send(s); 
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);