-
... Pbind( \instrument, \default, \note, Pseq([0,4,Rest(1),-2],inf) + Pseq([Pn(0,8),Pbrown(0,4,1,8)],inf), \dur, 1/4, \amp, 0.1, \sustain, 0.1, \out, ~bus[0], ), Pmono(\simpletrackmixer, \inbus, ~bus[0], \a ...
-
... lock.default.tempo = 65/60; ~bass = Pbind(*[ root:1, octave:[3,4], dur:Pn(1/4, 17*16), legato:Pwhite(1.5, 2.0), amp:Pwhite(0.1,0.12) ]); ~lead = Pbind(*[ root:1, octave:5, degree:Pseq([0,4,\r], 4), dur:Pseq([1,4,3], ...
-
functors - Using Pdef for building abstract pattern functions while live coding by julianrohrhuber (julian.rohrhuber) Code
... te a new pattern each time it is called Pdefn(\x, { Pseq({ 10.rand } ! 8) }); Pn(Pdefn(\x)).asStream.nextN(16); // the function is called in the incoming event as current environment, so parameters can be passed: Pdef(\stut, { Pstutte ...
-
... r(Prand([Prand([2,3,4,6,8]),4,6,8],inf))!2), \dur, 4, \modamp, Pseq([ Pn(1,32*3), Pn(0,32*1), ],inf), \amp, 0.1/2 * 0.5, )); Pdef(\chord2, Pmono(\kobass, \degree, Pseq([ 9, 9, 8, 8, ],inf)+Pseq([0,1,0,3], ...
-
... , 1))!2 * 0.5 }.play, \octave, 3, \scale, Scale.minorPentatonic, \degree, Pn(Plazy{Pseq(Pxrand((0..4),inf).asStream.nextN(4),4)}), \dur, 1/4 ).play; // clean up w.onClose_({ b.free; x.stop; }); )
-
... ); ); Pdef(\mplayer, ~x).clock_(TempoClock(100/60)).play; Pdef(\mplayer, Pn(Event.silent)).fadeTime_(8);
-
... nent_(true); ~keyMotif = Pbind( \instrument, "keyMod", \degree, Pseq([Pn(4, 12), 5, 5, 5, 5, Pn(4, 16)], inf), \dur, 1/2, \att, 0.02, \rel, 2, \amp, 0.2, \ctranspose, 2 ).play.stop; ~keyBuild = Pbind( \inst ...
-
... Pswitch( [ \rest, \note ], Pkey( \onOff ) ), \pluck0, 0, \pluck1, Pn(Pbrown(0.04, 0.2, 0.008)) * Pkey(\loose), \pluck2, Pn(Pbrown(0, 0.2, 0.01)) * Pkey(\loose), \pluck3, Pn(Pbrown(0, 0.2, 0.012)) * Pkey(\loose), ...
-
... 3, 0.4, 0.5, 0.8, 1, 2], inf) )).trace.play(~bpm); ) // ex. 4 ( Pstretch(Pn(Pgeom(0.5, 1.1, 14)), // can also stretch by pattern! Pbindf(~melody.p, \instrument, "plucking", \decay, 1, \dampen, 0.1, \amp, 1, \ctranspo ...
-
... h, lWidth, 1 - lStart - lWidth]*BufDur.ir(bufnum), releaseNode: 4, loopNode: 2, curve: 0 ), gate: Trig.ar(1, (lStart + (((2 * nLoop) + 1) * lWidth))*BufDur.ir(bufnum)), doneAction: Done.freeSelf ); sig = Buf ...