-
... , 0.2], inf ), \legato , Pwrand (#[0.1, 0.6, 1.01], #[0.1, 0.3, 0.6], inf ) ); ~melody = Pbind ( \degree , Pwhite (-4, 11, inf ) ); p = Pchain (~melody, ~rhythm).play; p.stop; That in itself has some good potential for algorithmic compositi ...
-
... ample given in part 1 that uses a Pattern to create two instances of the random melody stream. ( s = Server .local; SynthDef ( \help_SPE2 , { arg i_out=0, sustain=1, freq; var out; out = RLPF .ar( LFSaw .ar( freq ), LFNoise1 .kr(1, 36, 110) ...
-
... rom time to time, the continuity should still be audible. ( var melodies = ( lowMelody: Pseries (4, Prand (#[-2, -1, 1, 2], inf ), inf ).fold(-7, 11), highMelody: Pseries (14, Prand (#[-3, -2, 2, 3], inf ), inf ).fold(7, 18) ); p = Pbind ( ...
-
... instead of just one. The 'degree' pattern applies a set of chord intervals to a melody that's always on top. It's a compound pattern, Pseries(...) + Prand(...), where Pseries returns a single number and Prand returns an array. As with regul ...
-
... ; #[63,65].choose.yield; 67.yield; #[70,72,74].choose.yield; }); // random high melody rrand(3,9).do({ #[74,75,77,79,81].choose.yield }); }); }); Routine ({ loop({ Synth ( \help_SPE1 , [ \freq , stream.next.midicps ] ); dur.wait; // synonym ...
-
... ,60,65]]); Paddp ( \ctranspose , Prand ([-1,0,2,4,5], inf ), Ppar ([ Pbind ( // melody part \dur , Prand ([0.2, 0.4, 0.6], inf ), \midinote , Pxrand ([71, 72, 74, 76, 77, 79], 10), \db , -26, \legato , 1.1 ), Pbind ( // harmony part \pan , ...
-
... play pitched material PG_Cookbook06_Phrase_Network Building a more complicated melody using shorter phrase patterns Also illustrates PmonoArtic for portamento with articulation PG_Cookbook07_Rhythmic_Variations : An ever-changing drumbeat ...
-
... cked to see if the top note is already a member. If not, it's added so that the melody will always be present. Note that lazy operations on patterns define most of this behavior; only the conditional array check had to be written as a funct ...