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.
22 a = Pstutter(2, Pseq([1, 2, 3],inf));
24 13.do({ x.next.postln; });
28 //Pstutter used as a sequence of pitches
31 SynthDef(\help_sinegrain,
32 { arg out=0, freq=440, sustain=0.05;
34 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
35 Out.ar(out, SinOsc.ar(freq, 0, env))
41 c = Pstutter(3, Prand([1, 2, 3],inf)*4+65);
45 Synth(\help_sinegrain, [\freq, x.next.midicps]);