-
PstepNadd pattern that returns combinatoric sums superclass: PstepNfunc combines an arbitrary number of patterns by summing (depth first traversal). when a stream ends it is recreated from its pattern until the top stream ends. see also: Ps ...
-
... t, SinOsc .ar(freq, 0, env)) }).add; ) ( var a; a = Pif ( Pfunc ({ 0.3.coin }), Pn ( Pseries (0.5, 0.1, 10)), Pn ( Pseries (6, -0.1, 10))).asStream; { loop { Synth ( \help_sinegrain , [ \freq , a.next * 600 + 300]); 0.2.wait; } }.fork; )
-
Pnsym use a pattern of symbols to embed Pdefn's superclass: Psym for event patterns see Psym Overview: JITLib Related: Pdefn Pnsym(pattern) pattern: a pattern that returns symbols or characters. Arrays are converted to parallel patterns ( P ...
-
... ns in succession, one by one. (Plazy embeds just one pattern; wrapping Plazy in Pn does it many times.) The logic in this example is a bit more involved: for each measure, start with arrays containing the basic rhythmic pattern for each par ...
-
... , 0.3]), \degree , Pseq ([3, -1])) ], inf ); b = Prand ([ Pbind ( \ctranspose , Pn (1, 4)), Pbind ( \mtranspose , Pn (2, 7)) ], inf ); c = Prand ([ Pbind ( \detune , Pfuncn ( { [0, 10.0].rand }, 5), \legato , 0.2, \dur , 0.2), Pbind ( \lega ...
-
... in, 0.2), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, env)) }).add; ) ( a = Pn ( Pwrap ( Pgeom (200,1.07,96), 200, 1000.0 ), inf ); x = a.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.debug, \dur ,0.3]); 0.12.wa ...
-
... ) This does not work if the ranges need to keep their own integrity. For that, Pnsym1 is ideal. We create a dictionary with named patterns, each of which maintain their own streams. Then we choose randomly between their names, picking one ...
-
... ace Ptuple Pslide Pfsm Place ... FilterPatterns Pseed Prewrite Pswitch Pswitch1 Pn Pstutter Pfin Psync Pcollect Pselect Preject PdurStutter Pconst Pwrap PdegreeToKey Pavaroh event stream specific filter patterns Pset Pfset Pmul Padd Psetp P ...
-
... in, 0.2), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, env)) }).add; ) ( a = Pn ( Pshuf (#[60, 60, 60, 61, 63, 65, 72], 4), inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , a.next.midicps]); 0.15.wait; }) }).play; )
-
... \instrument , \help_sinegrain , \degree , Pseries (0, 1, inf ), \octave , 6 ); Pn ( Pfindur (1, c) ).play; )