2 summary:: sequentially embed values in a list in constant, but random order
3 related:: Classes/Prand
4 categories:: Streams-Patterns-Events>Patterns>List
8 Returns a shuffled version of the strong::list:: item by item, with n strong::repeats::.
15 a = Pshuf([1, 2, 3, 4, 5], 3); // repeat 3 times
17 16.do({ b.next.postln; });
20 //Pshuf used as a sequence of pitches:
23 SynthDef(\help_sinegrain,
24 { arg out=0, freq=440, sustain=0.05;
26 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
27 Out.ar(out, SinOsc.ar(freq, 0, env))
32 a = Pn(Pshuf(#[60, 60, 60, 61, 63, 65, 72], 4), inf).asStream;
35 Synth(\help_sinegrain, [\freq, a.next.midicps]);