2 summary:: repeat input stream values
4 categories:: Streams-Patterns-Events>Patterns>Repetition
8 repeat each element n times.
15 may be a pattern, so the number of times can vary each iteration.
25 a = Pstutter(2, Pseq([1, 2, 3],inf));
27 13.do({ x.next.postln; });
31 //Pstutter used as a sequence of pitches
34 SynthDef(\help_sinegrain,
35 { arg out=0, freq=440, sustain=0.05;
37 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
38 Out.ar(out, SinOsc.ar(freq, 0, env))
44 c = Pstutter(3, Prand([1, 2, 3],inf)*4+65);
48 Synth(\help_sinegrain, [\freq, x.next.midicps]);