Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / HelpSource / Classes / PauseSelf.schelp
blob10dc14203875eb49cb83aa63c7ff45b33bcbebcb
1 class:: PauseSelf
2 summary:: When triggered, pause enclosing synth.
3 related:: Classes/FreeSelf
4 categories::  UGens>Synth control
7 Description::
9 Pause enclosing synth when input signal crosses from non-positive to
10 positive.
13 classmethods::
15 method::kr
17 argument::in
19 The input signal.
22 Examples::
24 code::
27 SynthDef("pauseSelf-help", { arg out, t_trig;
28         PauseSelf.kr(t_trig);
29         Out.ar(out, SinOsc.ar(400,0,0.2));
30 }).send(s);
33 s.sendMsg("/s_new", "pauseSelf-help", 1731);
34 s.sendMsg("/n_set", 1731, \t_trig, 1);
35 s.sendMsg("/n_run", 1731, 1);
36 s.sendMsg("/n_set", 1731, \t_trig, 1);
37 s.sendMsg("/n_free", 1731);