2 summary:: repeatedly embed a pattern
3 related:: Classes/Pstutter
4 categories:: Streams-Patterns-Events>Patterns>Repetition
11 Repeats the enclosed pattern strong::repeats:: times.
14 If strong::key:: is non-nil, it sets the value of that key to true whenever it restarts the pattern. This can be used to advance Patterns enclosed by link::Classes/Pgate::.
21 a = Pn(Pseq(#[1, 2, 3], 1), 4); // repeat pattern four times
23 16.do({ b.next.postln; });
28 SynthDef(\help_sinegrain,
29 { arg out=0, freq=440, sustain=0.05;
31 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
32 Out.ar(out, SinOsc.ar(freq, 0, env))
38 a = Pn(Pshuf([1, 2, 2, 3, 3, 3], 4)).asStream;
41 Synth(\help_sinegrain, [\freq, a.next * 600 + 300]);