-
... 0, ratio=0.1; Pbind ( \instrument , \pgrain , \dur , sustain.value / n, \freq , Pseq ((1..n)) * ratio + 1 * freq.value // freq is a function, has to be evaluated ) }); Pdef ( \sweep2 , { arg sustain=1, n=8, freq=440, ratio=0.1; Pbind ( \ins ...
-
... \ctranspose , 2).play; // now change the definition Pdef ( \x , Pbind ( \note , Pseq ([0, 3, 5, 7, 9, 11], inf ))); Pdef ( \x , Pbind ( \freq , Pseq ([1000, 1923, 245.2, 1718] / 1.2 + 0.1, inf ))); Creation / Class Methods *new(key, pattern ...
-
... 0, env)) }).add; ) ( a = Pfsm ([ #[0,1], 67, #[0, 0, 3], 72, #[2], 73, #[0, 2], Pseq ([74, 75, 76, 77]), #[2, 3, 3], nil , nil ], inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , a.next.midicps]); 0.1.wait; }) }).play; ...
-
... f )); Pdef ( \y , Pchain ( Pbind ( \degree , Prand ([5, 9, 0], inf ), \legato , Pseq ([0.3, 2.2], inf )), Pdef ( \x ))); Pdef ( \z , Pchain ( Pbind ( \degree , Pseq ([0, 2, 5, 7, 8, 9], 1)), Pn ( Pdef ( \y )))); Pdef ( \play , Psym ( Pseq ( ...
-
... value, a stutter of 1 yields the duration value unaffected. ( a = PdurStutter ( Pseq(#[1,1,1,1,1,2,2,2,2,2,0,1,3,4,0],inf), Pseq(#[0.5, 1, 2, 0.25,0.25],inf) ); x = a.asStream; 100.do({ x.next.postln; }); ) ( SynthDef ( \help_sinegrain , { ...
-
... embeds it before looking for the next index. see also Pswitch1 ( var a, b; a = Pseq ([1, 2, 3], 2); b = Pseq ([65, 76]); c = Pswitch ([a, b, 800], Pseq ([2, 2, 0, 1], inf )); x = c.asStream; 24.do({ x.next.postln; }); ) Pswitch used as a s ...
-
... us switches between all patterns in the list. see also: Pswitch ( var a, b; a = Pseq ([1, 2, 3], inf); b = Pseq ([65, 76], inf); c = Pswitch1 ([a, b, 800], Pseq ([2, 2, 0, 1], inf )); x = c.asStream; 24.do({ x.next.postln; }); ) Pswitch use ...
-
... ttern add another pattern to the chain // examples ( Pchain ( Pbind ( \detune , Pseq ([-30, 0, 40], inf ), \dur , Prand ([0.2, 0.4], inf )), Pbind ( \degree , Pseq ([1, 2, 3], inf ), \dur , 1) ).trace.play; ) // also events can be used dire ...
-
... efault) // example SynthDescLib .read; ( e = ( a: Pbind ( \dur , 0.1, \degree , Pseq ([0, 5, 4, 3, 2])), b: Pbind ( \dur , 0.06, \degree , Pseq ([7, 8, 7, 8])), c: Pbind ( \dur , 0.3, \degree , Pseq ([0, 1, 2], 2)) ); x = Pdict (e, Pseq ([ ...
-
... 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 = Ppar ([a, b]); t = c.asStream; 20.do({ t.next( Event .default).postln ...