-
... tion and a Pattern will help illustrate the usefulness of Patterns. example 1 - Pseq vs. Routine The Pattern class Pseq(array, repetitions) defines a Pattern that will create a Stream that iterates an array. The class Routine(func, stackSiz ...
-
... nil, Ptuple ends that 'repeat' and restarts all of the streams. ( var a, b; a = Pseq ([1, 2, 3], inf ); b = Pseq ([65, 76], inf ); c = Ptuple ([a, a, b], inf ); x = c.asStream; 8.do({ x.next.postln; }); ) ( var a, b; a = Pseq ([1, 2, 3], in ...
-
... s.boot; Pbindef ( \a , \instrument , \Pdefhelp ).play; Pbindef ( \a , \degree , Pseq ([0, 2, 5b, 1b], inf )); Pbindef ( \a , \dur , 0.1); Pbindef ( \a , \degree , Pseq ([1b, 5, 3, 1b, 6, 2, 5, 0, 3, 0, 2], inf )); Pbindef ( \a , \legato , P ...
-
... is called if false it returns the last value //example: SynthDescLib .read; a = Pseq ([1, 2, 3], inf ); b = StreamClutch (a); 6.do({ b.next.postln }); b.connected = false ; 6.do({ b.next.postln }); //statistical clutch a = Pseq ([1, 2, 3], ...
-
... and no \default is supplied then one will get a runtime error. ( p = Pdfsm ( [ Pseq ( [ \foo , \bar ], 2 ), // foobar signals ( // state 0 \foo : [ 1, Pseq ([ 0, 1 ], 2 ) ] ), ( // state 1 \bar : [ 0, 3 ] ) ], 0, 2 ).asStream; 11.do({ p.ne ...
-
... see the delta values in the resulting events ( var a, b, c, t; a = Pbind ( \x , Pseq ([1, 2, 3, 4]), \dur , 1); b = Pbind ( \x , Pseq ([10, 20, 30, 40]), \dur , 0.4); c = Ptpar ([0.0, a, 1.3, b]); t = c.asStream; 20.do({ t.next( Event .defa ...
-
... , \dur , 0.1, \ctranspose , 15).play; // now change the definition Pdefn ( \x , Pseq ([0, 3, 5, 7, 9, 11], inf )); Pdefn ( \x , Pseq ([0, 3, 3, 7], inf ) + Pseq ([0, [0, 3], [0, 5, 7]], inf )); Creation / Class Methods *new(key, pattern) St ...
-
... x = PbindProxy .new; x.set( \instrument , \Pdefhelp ); x.play; x.set( \degree , Pseq ([0, 2, 5b, 1b], inf )); x.set( \dur , 0.1); x.set( \degree , Pseq ([1b, 5, 3, 1b, 6, 2, 5, 0, 3, 0, 2], inf )); x.set( \legato , Prand ([1.0, 2.4, 0.2], i ...
-
... Pn advances Pgate each time its subpattern is repeated ( Pbind ( \degree , Pn ( Pseq ((0..7)), inf , \step ), \mtranspose , Pgate ( Pwhite (0,5), inf , \step ), \dur , 0.2 ).play ) // Two different Pgates advanced at two different rates ( P ...
-
... vature values for each segments. // change a parameter ( Pbind ( \note , Pseg ( Pseq ([1, 5], inf ), Pseq ([4, 1], inf ), \linear ), \dur , 0.1 ).play; ) ( Pbind ( \freq , Pseg ( Pseq ([400, 1500], inf ), Pseq ([4, 4], inf ), Pseq ([ \linea ...