-
... \gate], MicRh(inEvent[\microRhythm]) .asPattern(~notePattern, inEvent), \mode, (Pfunc({ ~currentChord.modeForEvent(inEvent) })) ); // note, argpairs will reset every chord // if you want a stream not to reset, use BPStream in the argPairs a ...
-
... = -6; ~hiDev = 5; ~lookBack = 2; p = Pbind( \dur, 0.2, \midinote, PIdev(72, 11, Pfunc { ~loDev }, Pfunc { ~hiDev }, Pfunc { ~lookBack }).trace(prefix: "midi "), ).play; ) // change on the fly // as lookBack equals 2, this defines a fixed se ...
-
... nvir an environment with objects to embed. pattern pattern or stream, usually a Pfunc , Prout . independent if true streams can write to the environment without influencing other streams created from this pattern. if false, the streams writ ...
-
How to generate random envelope but control it with pattern standard \dur and \legato mecanism by 0-2U (grirgz) Code
... lop, \degree, Pseq([0],inf), \dur, Pseq([8,2],inf), \legato, 0.8, \env, Pfunc({ arg ev; // Pfunc because rrand should be executed for each event var times = [ rrand(0.01,1), rrand(0.01,1), rrand(0.01,1) ]; // sustain is alread ...
-
... ze); p.age= dur; }; ) Pbind(\dur, 0.5, \degree, Pseq([0, 1, 2, 3, 4]), \finish, Pfunc{|ev| ~createObj.value}).play Pbind(\dur, 0.25, \degree, Pseq([0, 1, 2, 3, 4, 9, 5, 2, 3, 5, 2, 1, 0, 0, 0]), \finish, Pfunc{|ev| ~createObj.value(x: ev.de ...
-
... ze); p.age= dur; }; ) Pbind(\dur, 0.5, \degree, Pseq([0, 1, 2, 3, 4]), \finish, Pfunc{|ev| ~createObj.value}).play Pbind(\dur, 0.25, \degree, Pseq([0, 1, 2, 3, 4, 9, 5, 2, 3, 5, 2, 1, 0, 0, 0]), \finish, Pfunc{|ev| ~createObj.value(x: ev.de ...
-
... e contains default values for a, b, c and d. p = Pbind ( [ \a , \b , \c , \d ], Pfunc ({ var out = Array .newClear(4); 3.do({ out[4.rand] = 10.rand + 1 }); out }) ).asStream; e = (a: 0, b: 0, c: 0, d: 0); p.next(e); ( 'c': 3, 'a': 5, 'b': 5 ...
-
... e contains default values for a, b, c and d. p = Pbind ( [ \a , \b , \c , \d ], Pfunc ({ var out = Array .newClear(4); 3.do({ out[4.rand] = 10.rand + 1 }); out }) ).asStream; e = (a: 0, b: 0, c: 0, d: 0); p.next(e); ( 'c': 3, 'a': 5, 'b': 5 ...
-
... [6 * h, 0, 0]; Pdef(\bandpass, Pbind( \instrument, \bandpass, \scale, Pfunc({m.scaleChord([0,2,4])}), \octave, 3, \degree, Pswitch([ Pseq([0,1,2]), Pseq([0,1,3]), Pseq([0,1,2,3,2,1]), ],Pfunc({m.bar%3})), \ ...
-
... \attack, 3, \decay, 0.1, \sustain, 1, \release, 5, \filterSpeed, Pfunc({~tempoFactor*0.5}), \filterFreqStart, 50, \filterFreqEnd, 800, \midinote, Pseq(["e3 g3 b3"].collect({|el| parser.asMidi(el)}), 1), \dur, Pseq ...