2 summary:: interlace streams
3 related:: Classes/Place
4 categories:: Streams-Patterns-Events>Patterns>List
8 Similar to link::Classes/Place::, but the list is an array of streams or patterns. The results of each stream will be output in turn.
13 p = Ppatlace([Pwhite(1, 5, 5), Pgeom(10, 1.01, 10)], inf);
36 Note that the Ppatlace has an infinite number of repeats, but the resulting stream is finite because the member streams are all finite. When the first stream (Pwhite) comes to an end, it is skipped and you see only the second stream until it stops.
38 If even one member stream is infinite and Ppatlace has infinite repeats, the Ppatlace stream will also be infinite.
42 //Ppatlace as a sequence of pitches:
45 SynthDef(\help_sinegrain,
46 { arg out=0, freq=440, sustain=0.05;
48 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
49 Out.ar(out, SinOsc.ar(freq, 0, env))
54 // interlace two streams
57 Pseq([0, 0, 0, 0, 8, 0, 8], inf),
64 Synth(\help_sinegrain, [\freq, x.next.midicps, \dur, 0.2]);
73 // a more complicated example:
77 Pseq(#[0, -2, -3, -5, -7], 1), Pwhite(-12, 4, 3), Pshuf(#[0, -2, -3, -5, -7], 1)
80 Pseq(#[0, 2, 4, 5, 7], 1), Pwhite(-4, 12, 3), Pshuf(#[0, 2, 4, 5, 7], 1)
87 Synth(\help_sinegrain, [\freq, x.next.midicps, \dur, 0.2]);