-
... sp. p y.nextN(10) // data sharing with event patterns ( p = Pbind ( \midinote , Pwhite (60, 90) + PLrand ([0, 0, [0, -3]]), \dur , PLrand ([0.2, 0.4]), \amp , PLrand ([0.07, 0.12, 0.2]), \type , Pfunc { 0.1.coin.if { \rest }{ \note } }, \pa ...
-
... ttom ) + ~chord, \freq , Pfunc ({ |ev| ev[ \mode ].cps(ev[ \notes ]) }), \dur , Pwhite (1, 4, inf ) * 0.5, \instrument , \default ).play; p.stop; // better way if you do this kind of thing often: // create a new protoevent, replacing the ~f ...
-
... ttom ) + ~chord, \freq , Pfunc ({ |ev| ev[ \mode ].cps(ev[ \notes ]) }), \dur , Pwhite (1, 4, inf ) * 0.5, \instrument , \default ).play; p.stop; // better way if you do this kind of thing often: // create a new protoevent, replacing the ~f ...
-
... Pgeom { estimateLength { ^length } } + Pbrown { estimateLength { ^length } } + Pwhite { estimateLength { ^length } } + Paccum { estimateLength { ^length } } // list patterns generally have a repeat argument // we'll assume most of them ret ...
-
... air. p = Pbind (#[x, y, z], Ptuple ([ Pseries (0, 1, inf ), Pgeom (1, 2, inf ), Pwhite (1, 10, inf )], inf )).asStream; p.next(()); ( 'y': 1, 'x': 0, 'z': 6 ) ( 'y': 2, 'x': 1, 'z': 6 ) ( 'y': 4, 'x': 2, 'z': 7 ) ( 'y': 8, 'x': 3, 'z': 8 ) ...
-
... air. p = Pbind (#[x, y, z], Ptuple ([ Pseries (0, 1, inf ), Pgeom (1, 2, inf ), Pwhite (1, 10, inf )], inf )).asStream; p.next(()); ( 'y': 1, 'x': 0, 'z': 6 ) ( 'y': 2, 'x': 1, 'z': 6 ) ( 'y': 4, 'x': 2, 'z': 7 ) ( 'y': 8, 'x': 3, 'z': 8 ) ...
-
... ~bufs), \dur, Pn(Pgeom(0.5, 0.992, 250), 4) * Pn(Pgeom(1, 0.99, 143), 7), \pan, Pwhite(-1.0, 1.0), \rate, Pbrown(0.9, 1.1, 0.02) * Pwrand([1, -1], [0.9, 0.1], inf) ) ).play; ) ///////// for completeness, here is a test for writing files /// ...
-
... Pgeom { estimateLength { ^length } } + Pbrown { estimateLength { ^length } } + Pwhite { estimateLength { ^length } } + Paccum { estimateLength { ^length } } // list patterns generally have a repeat argument // we'll assume most of them ret ...
-
... files as well: ( p = Pbind ( \dur , Prand ( [ 0.25 , 0.5 , 1 ], inf ), \freq , Pwhite ( 440 , 880 ), \db , Pwhite ( -40 , -10 ), \legato , Pwhite ( 0.25 , 4 ) ); m = SimpleMIDIFile ( "~/Desktop/testPat.mid" ); m.init1( 2 , 120 , "4/4" ); m ...
-
... 0], compactPatterns: false , inChannels: 2, def: \bufGrainPan , argPairs: [pan: Pwhite (-1.0, 1.0, inf )] )); ) BP ( \ex2 ).play; BP ( \ex2 ).stop; BP ( \ex2 ).free; // Auto-generated rhythm, calculating 16-element arrays then shrinking the ...