sclang: ServerShmInterface - try to avoid multiple destructor calls
[supercollider.git] / HelpSource / Classes / Free.schelp
blob575a2eebc6bb8e9efed677cad61a4ec8c9f2b6da
1 class:: Free
2 summary:: When triggered, frees a node.
3 related:: Classes/Pause, Classes/FreeSelf
4 categories::  UGens>Synth control
6 Description::
7 When triggered, frees a node.
9 classmethods::
11 method::kr
13 argument::trig
14 Trigger input
16 argument::id
17 Node to be freed.
20 Examples::
22 code::
23 s.boot;
25 SynthDef("a", { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).send(s);
27 SynthDef("b", { arg t_t=0; Out.ar(1, PinkNoise.ar(0.3)); Free.kr(t_t, 1001); }).send(s);
29 s.sendMsg(\s_new, \a, 1001, 0, 0);
31 s.sendMsg(\s_new, \b, 1002, 0, 0);
33 s.sendMsg(\n_set, 1002, \t_t, 1);
35 s.sendMsg(\s_new, \a, 1001, 0, 0);
37 s.sendMsg(\n_set, 1002, \t_t, 1);
39 s.sendMsg(\s_new, \a, 1001, 0, 0);
41 s.sendMsg(\n_set, 1002, \t_t, 1);