-
... 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 been playing ( Pchain( Ppar([ Pbind( \degree, Pbrown(0, 12, 1), \dur, Pstep(Ps ...
-
... ry -- for instance, converting a pattern into a Score object for NRT rendering. Ppar(list, repeats) Start each of the event patterns in the list at the same time. When the last one finishes, the Ppar also stops. If repeats > 1 , all the sub ...
-
... ikp1) ); Pdef(\blikmain, Pseq([ Pfindur(8,Pdef(\blik)), Pfindur(32,Ppar([ Pdef(\blikp1), Pdef(\blikp2), ].collect({ arg p; Pbind(\dur, 1, \clean, 8) <> p }))), Pfindur(32,Ppar([ Pdef(\blikp1), Pdef(\blikp2 ...
-
PparSwitch : Pswitch { var <>accum; *new { arg list, which = 0, accum = false; ^super.new(list, which).accum_(accum) } // a convenient implementation, using Ppar. // could be more effective, but this is easy. embedInStream { arg inval; var ...
-
... ( Pspawner({ arg maestro; "start".postln; ~drumbeat1 = maestro.par(Ppar([ ~kick1, ~hihat1])); maestro.wait(4); ~drumbeat12 = maestro.par(Ppar([~pulse, ~snare1])); maestro.par(~fightspeech); maestro.seq(~speech1); m ...
-
... eq (#[0, 2b, 3], 1), \dur , 2, \ctranspose , -7 ); Pseq ([ Event .silent(1.25), Ppar ([a, b])], inf ).play; ) // test tempo changes ( var a, b; a = Pbind ( \degree , Pswitch (#[0, 2b, 3], Ptime (8).round(2) / 2), \dur , Prand (#[0.2, 0.5, 1 ...
-
... ecord; ( Pspawner({ arg maestro; maestro.seq(~four); maestro.seq(Ppar([ ~two])); maestro.seq(Ppar([ ~one, ~two])); maestro.seq(Ppar([~four, ~two, ~twofive, ~threefive])); maestro.seq(Ppar([~twofive, ~two, ~threef ...
-
... .ar( SinOsc .ar(freq), pan, env)) }).add; ) ( a = Plambda ( Pseq ([ Pfindur (5, Ppar ([ Pbind ( \note , Plet ( \x , Prand ([1, 5, 1, [10, 14]], inf )), \dur , 8/3, \pan , -1), Pbind ( \note , Plet ( \y , Pseq ([5, 3, 2, 0, [0, 5, 6, 9]], in ...
-
... y, default: 1, repeats: inf).trace ); // Play the patterns in parallel Plambda( Ppar([a, b], inf) ).play; ) /* A more complex example: Three patterns running in parallel */ ( SynthDef(\sine, { |out = 0, freq = 440, sustain = 0.05, pan = 0, ...
-
... ======================== ( Pspawner({ arg maestro; s.record; maestro.seq(Ppar([ ~three, ~voc], 1)); maestro.seq(Ppar([ ~clap2, Pseq([~three], 2), Pseq([~voc], 2)], 1)); maestro.seq(Ppar([ ~clap2, Pseq([~three], 2), Pseq([~voc], 2 ...