sclang: ServerShmInterface - try to avoid multiple destructor calls
[supercollider.git] / HelpSource / Classes / Dstutter.schelp
blob568b2365e300a2c46321644d0404692da6151a06
1 class:: Dstutter
2 summary:: Demand rate input replicator
3 categories:: UGens>Demand
5 classmethods::
6 method:: new
7 argument:: n
8 number of repeats (can be a demand ugen)
9 argument:: in
10 input ugen
11 discussion::
12 structurally related: link::Classes/Pstutter::
14 examples::
15 code::
18         var freq, trig;
19         var in = Dseq([1, 2, 3], inf);
20         var rep = Dstutter(Diwhite(2, 8, inf), in);
21         trig = Impulse.kr(MouseX.kr(1, 40, 1));
22         freq = Demand.kr(trig, 0, rep).poll(trig) * 30 + 340;
23         SinOsc.ar(freq) * 0.1
25 }.play;