-
... into midi 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.fromPattern ...
-
... \note, Pshuf((0..11), inf) + Pseq([[0.2, 14.2], [0, 4], [0, 4]], inf), \octave, Pwhite(3, 6), \out, Pseq([b, a, a], inf) // here we do fx sequencing ).play ) p.stop // we need to do cleanup manually here [x, y, a, b].do(_.free); ⧉ ✔ Ex. 4b: ...
-
... (by a bass player who only chooses notes randomly) Pbind( \octave, 3, \degree, Pwhite(0, 7, inf), \dur, 0.5 ), Pseq([ Pchain( ~swingify, Pbind( \degree, Pseries(-7, 1, 15) +.x Pseq([0, 9], 1), \dur, Pwhite(1, 3, inf) * 0.25 ), (swingBase: ...
-
... in the gui and hear what happens ( Pbind( \instrument, \polybuf_sampler, \rate, Pwhite(0.5,1.0), \buffer, Pdefn(\polySelected, Pseq(b.selected, inf)), \dur, Pfunc{|ev| ev[\buffer].duration * ev[\rate].abs.reciprocal } ).play; ) ⧉ ✔ Inherite ...
-
... numRepeats) Pxrand choose one element from a list, no repeat of previous choice Pwhite within range [<hi>, <lo>], choose a random value. Pbrown within range [<hi>, <lo>], do a random walk with a maximum <step> to the next value. Pgbrown geo ...
-
... ot({ //Define and start an AlgaPatternPlayer ~player = AlgaPatternPlayer(( dur: Pwhite(0.1, 0.5), freq: Pseq([440, 880], inf) )).play; //Use ~player for both indexing values and triggering the pattern ~pattern = AP(( def: { SinOsc.ar(\freq. ...
-
... use Plazy // to wait and evaluate ~buf.duration at play time. ~start = Plazy { Pwhite(0, ~buf.duration - Pkey(\time), inf) * ~buf.sampleRate }; ~time = Pwhite(0.1, 0.3, inf); ~pan = Pwhite(0.6, 0.8, inf) * Pseq([-1, 1], inf); ~dur = Pwhite ...
-
... it for a random time interval p = Pstep( Pbind( \ctranspose, [0, 4, 7], \note, Pwhite(0, 12), \dur, Prand([0.2, 0.4, 0.8], inf) ), Prand([1, 2, 4], inf)/4 ); Ppar([p, p]).play; ) // change degree independently of number of events that have ...
-
... }, // The \delta key is used automatically for the spawner.wait() call \delta, Pwhite(1, 4, inf) * 0.25 )).play; ) p.stop; ⧉ ✔ Previous: Pattern Guide 06c: Composition of Patterns Next: Pattern Guide 06e: Language Control helpfile source: ...
-
... onductor.pattern_(Pbind (\freq, Prand([1, 3/2, 5/4, 7/4], inf) * freq + Ptuple([Pwhite(-1.0,1),Pwhite(-1.0,1)]), \db, vol, \dur, Prand([0.2, 1.2],inf), \group, 22, \legato, 10), quant:0 ); } ); b.show; ) ( // Using a Buffer and interpolatio ...