linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / Pause.schelp
blob33e660c4519a3a1fb76570a045e959a699e9337e
1 class:: Pause
2 summary:: When triggered, pauses a node.
3 related:: Classes/Free
4 categories::  UGens>Synth control
7 Description::
9 When triggered, pauses a node.
12 classmethods::
14 method::kr
16 argument::gate
18 When gate is 0, node is paused, when 1 it runs.
21 argument::id
23 Node to be paused.
26 Examples::
28 code::
30 s.boot;
32 SynthDef("a", { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).send(s);
34 SynthDef("b", { arg gate=1; Out.ar(1, PinkNoise.ar(0.3)); Pause.kr(gate, 1001); }).send(s);
36 s.sendMsg(\s_new, \a, 1001, 0, 0);
38 s.sendMsg(\s_new, \b, 1002, 0, 0);
40 s.sendMsg(\n_set, 1002, \gate, 0);
42 s.sendMsg(\n_set, 1002, \gate, 1);