-
... .play; ) // replace with items or patterns ~a = 58; // PL had repeats = inf, so Pseq is embedded endlessly ~a = Pseq ([60, 60, 58, 60, 53, 54.5, 56, 58]); x.stop; ////////////////////// // placeholder may also get event patterns ( p = PL ( ...
-
Pbindef(\musicBox, \instrument, "musicBox", \mix, 0.25, \slope, 0, \dur, Pseq([ 2/6, 1/6, 1/2, 1/2, 1/2, 2, 2/6, 1/6, 1/2, 1/2, 1/2, 2, 2/6, 1/6, 1/2, 1/2, 1/2, 1/2, 3/2, 2/6, 1/6, 3/4, 1, 1/2 ], 1) * Pwhite(1.2, 1.8), \freq, Pseq([ 67, 67, ...
-
... (20, 40, 0); //stereo inputs on 20 and 40, stereo output on 0 b= Pbind(\degree, Pseq([0, 1, 5, 4, 3], inf), \dur, 0.25, \pan, Pseq([-1, 1], inf), \out, 20).play; c= Pbind(\degree, Pseq([10, 11, 16, 15], inf), \dur, 0.25, \pan, Pseq([-1, 1], ...
-
... time than s.latency for this to work ( Pdef(\zed, Pbind( \osc, Pseq([SinOsc, LFSaw],inf), \instrument, Prout({ arg ev; SynthDef(\zed, { arg out=0, gate=1, amp=0.1, pan=0, freq=200; var ...
-
... ar(2)) }).play ) ( { var kick, snare, hihat, noise, fill1, rh1; fill1 = Pseq([Pseq([1],4),Pseq([0.125],8)],inf); // Fill used with a snare rh1 = Pwrand([0.5,1,0.25,0.125],[0.75,0.15,0.05,0.05],inf); // Different hihat rhythm ~fr ...
-
... Str.next(inval); nVal= nStr.next(inval); if(kVal.notNil and:{nVal.notNil}, { b= Pseq(Bjorklund(kVal, nVal), 1, offset).asStream; while({outval= b.next; outval.notNil}, { inval= outval.yield; }); }, { inval= nil.yield; }); }; ^inval; } } /* ...
-
... dectime: 0.034721955338952 ); ) ( Pdef(\kick, Pmono( \kick, \amp, Pseq([100,0,80,0, 0,0,0,0, 100,0,80,0, 0,0,0,20],inf), \amp, Pkey(\amp) / 100, \trig, Pif(Pkey(\amp) > 0, 1, 0), \dur, 0.25, \timingOffset, Pseg(Pse ...
-
TestStreamKrDur : UnitTest { test_pseqSpec { var s,k; k = StreamKrDur( Pseq([0,1,2,3,4,5],inf), 0.25 ); s = k.spec; this.assertEquals(s.class,ControlSpec,"ControlSpec"); this.assertEquals( s.minval, 0, "minval 0"); this.assertEquals( s.maxv ...
-
... s = melody.flop[1]; ~melody = Pbind( \instrument, "amDepth", \dur, Pseq (durs, 1), \degree, Pseq(notes, inf), \amp, 0.8, \sus, 0.6, \rel, 1.5, \modFreqRatio, 0.5, \modDepth, 0.4 ).play.stop; }.value ...
-
... (\z, Pdefn(\y) * 2); ( Pdef(\play, Pbind( \instrument, \gpdef, \harmonic, Pnsym(Pseq([\x, \x, Prand([\x, \y]), [\z, \y], \y], inf)).trace, \dur, 0.2, \note, 10 ) ).play; ) // change root pattern: Pdefn(\x, Pn(2, 3)); Pdefn(\x, Pseq([1, 3, 1 ...