linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / NumRunningSynths.schelp
blob64deab288a94b761663f6a478e1921681070e9a5
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);