-
... erse direction. Common patterns: 1 -- always wrap around to the other boundary. Pseq([1, -1], inf) -- go forward first, then backward, then forward again startPos : Where to start in the list. Example: ( a = Pwalk ( Array .series(20, 0, 1), ...
-
... using LazyEnvir a = LazyEnvir .new; a.proxyClass= \PatternProxy ; a.push; ~x = Pseq ([1, 2, 30], 1); ~y = Pseq ([~x], inf ); z = ~y.asStream; z.next; z.next; z.next; ~x = Pseq ([100, 2, 300], 1); z.next; z.next; z.next; a.pop;
-
... o distract attention from the data (which are the real concern in composition). Pseq (Pattern-sequence) means simply to spit out the values in the array one by one, in order, as many times as the second argument (here, only once). p = Pseq ...
-
Ppatlace interlace streams superclass: Pseq Similar to Place , but the list is an array of streams or patterns. The results of each stream will be output in turn. Ppatlace(list, repeats) // example p = Ppatlace ([ Pwhite (1, 5, 5), Pgeom (1 ...
-
... rument , Prand ([ \help_SPE7_BerlinB , \help_SPE7_CFString1 ], inf ), \degree , Pseq ([0,1,2,4,6,3,4,8], inf ), \dur , 0.8, \octave , 3, \amp , 0.03 ).play; // this returns an EventStreamPlayer ) Defining your own message bindings The defau ...
-
... lting stream ends when that incoming stream ends ( var a, b; a = Pset ( \freq , Pseq ([401, 801], 2), Pbind ( \dur , 0.5)); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq=4 ...
-
... (0, 1, 12) hypot: Pseries (3, -1, 12); a.asStream.all; ) // some common cases: Pseq ([1, 2, 3]) + 2; Pseq ([1, 2, 3]) / Pseq ([3, 4, 5, 6]); max( Pwhite (-10, 10, inf ), Pseq ([0, 2, 3, 4])); // sound example ( SynthDef ( \help_sinegrain , ...
-
... \y ) * 2); ( Pdef ( \play , Pbind ( \instrument , \gpdef , \harmonic , Pnsym ( Pseq ([ \x , \x , Prand ([ \x , \y ]), [ \z , \y ], \y ], inf )).trace, \dur , 0.2, \note , 10 ) ).play; ) // change root pattern: Pdefn ( \x , Pn (2, 3)); Pdef ...
-
... ; Out .ar(out, Pan2 .ar( SinOsc .ar(freq), pan, env)) }).add; ) ( a = Plambda ( Pseq ([ Pfindur (5, Ppar ([ Pbind ( \note , Plet ( \x , Prand ([1, 5, 1, [10, 14]], inf )), \dur , 8/3, \pan , -1), Pbind ( \note , Plet ( \y , Pseq ([5, 3, 2, ...
-
... been passed down, use Pmul ( var a, b; a = Pmulpre ( \note , 2, Pbind ( \note , Pseq([1, 2, 3]))); x = a.asStream; 9.do({ x.next( Event .default).postln; }); ) Pmulpre does not override incoming values: ( var a, b; a = Pmulpre (\freq, 801, ...