2 summary:: repeatedly embed a pattern
3 related:: Classes/Pstutter
4 categories:: Streams-Patterns-Events>Patterns>Repetition
14 Repeats the enclosed pattern strong::repeats:: times.
17 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::.
24 a = Pn(Pseq(#[1, 2, 3], 1), 4); // repeat pattern four times
26 16.do({ b.next.postln; });
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 a = Pn(Pshuf([1, 2, 2, 3, 3, 3], 4)).asStream;
44 Synth(\help_sinegrain, [\freq, a.next * 600 + 300]);