-
How to generate random envelope but control it with pattern standard \dur and \legato mecanism by 0-2U (grirgz) Code
... t, sig); }).add; ); ( Pdef(\plop, Pbind( \instrument, \plop, \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( ...
-
... .25 )).trace.play // use all knobs as step sequencer Pdef(\test, Pbind( \knVal, Pseq(a.elAt(\kn), inf), \degree, (Pkey(\knVal) * 10).round(1), \dur, 0.25 )).trace.play a.elAt(\sl, 0).value = 1; // same with PKtl, and uses slider1 to set dur ...
-
... fill(size:c,function:{arg i;a[i]%12}); p=1/(21-c);Pdef(\x,Pbind(\dur,p,\degree,Pseq(b,1,0))); r=Array.fill(c,{arg i;Pbindf(Pdef(\x),\mtranspose,1-b[i]);}); Pseq(r,(1/p)).play; )
-
... ng stream ends when that incoming stream ends ( var a, b; a = Psetpre ( \freq , Pseq ([401, 801], 2), Pbind ( \dur , 0.5)); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq=4 ...
-
... ///////////////// ( ~bass = Pbind( \instrument, "fm2_a", \midinote, Pseq([ [39, 46], [34, 41], [36, 43], [32, 39], [39, 46], [34, 41], [36, 43], [32, 39], 39, 46, 34, 41, 36, 43, 32, ...
-
... Note, [ 0, 9, 5, 4 ], "[\c, \a, \f, \e] -> [ 0, 9, 5, 4 ]"); this.assertEquals( Pseq([\c, \a, \f, \e], inf).asStream.nextN(10), [ 0, 9, 5, 4, 0, 9, 5, 4, 0, 9 ], "Pseq[\c, \a, \f, \e] -> [ 0, 9, 5, 4, ... ]" ); } }
-
... ent can also be a pattern: ( var a; a = Pnaryop ( \wrap , Pseries (0, 1, 12), [ Pseq ([3, 4, 5], inf ), Pseq ([9, 7], inf )]); a.asStream.all; ) // common cases: Pwhite (0, 1, inf ).linexp(0, 1, 200, 1000); Pwhite (0, 1, inf ).degreeToKey([ ...
-
... ument, "Triangular AM", \scale, Scale.aeolian, \ctranspose, -12, \degree, Pseq([ [-7,-3, 0, 2, 4, 7], [-8, -4, -1, 1, 3, 6], [-9, -5, -2, 0, 2, 5], [-5, -1, 2, 4, 6, 9], [-4, 0, 3, 5, 7, 10], ], inf), \dur, Pseq([P ...
-
... 0) // example s.boot; a= Pbind ( \dur , 1/3, \legato , 0.4, \midinote , PGate ( Pseq ([0, 2, 4, 5], inf ), Pseq ([0, 0, 0, 1, 1, 1, 1, 1], inf )).trace*5+50).play a.stop a= Pbind ( \dur , 1/6, \legato , 0.2, \amp , PGate ( PSaw (64, 0.5, 0. ...
-
... // example s.boot; a= Pbind ( \dur , 1/3, \legato , 0.4, \midinote , PDelay2 ( Pseq ([0, 2, 4, 5], inf ), 2, 4).trace+50).play a.stop a= Pbind ( \dur , 1/6, \legato , 0.2, \abc , Pseq ([3, 2, 2, 0, 2, 2, 2], inf ), \degree , Pkey ( \abc ), ...