-
... ) * rate, 0, BufFrames .kr(0))) }.play; ) x.set( \rate , 5); y.set( \rate , 2.0.rand); x.set( \rate , 2);
-
... 40, amp=0.1, pan=0, gate=1; var z; z = LPF .ar( Mix .new( VarSaw .ar(freq + [0, Rand (-0.4,0.0), Rand (0.0,0.4)], 0, 0.3)), XLine .kr( Rand (4000,5000), Rand (2500,3200), 1) ) * Linen .kr(gate, 0.01, 0.7, 0.3, 2); OffsetOut .ar(out, Pan2 .a ...
-
... = EnvGen .kr( Env .perc(0.01, sustain), 1, doneAction:2); 5.do { var d; d = exprand(0.01, 1); u = SinOsc .ar(d * 300, u, rrand(0.1,1.2) * d, 1) }; Out .ar(out, Pan2 .ar( SinOsc .ar(u + 1 * freq, 0, amp * env), pan)); }).store; ) s.boot; Pb ...
-
... lay(s,[ \out , 0, \bufnum , b]); ) ( fork { var n = 32; 50.do { b.sine1( Array .rand(n,0,1).cubed, true , true , true ); 0.25.wait; }; }; )
-
... impleSine , { arg freq, sustain=1.0; var osc; osc = SinOsc .ar( [freq,freq+0.05.rand] ) * EnvGen .ar( Env .perc, doneAction: 2, levelScale: 0.3, timeScale: sustain ); Out .ar(0,osc); }).add; ) /////////////////////////////////////////////// ...
-
... ate array of harmonic amplitudes a = Array .fill(32,0); 12.do({ arg i; a.put(32.rand, 1) }); // fill table s.performList( \sendMsg , \b_gen , i, \sine1 , 7, a); }); ) ( 8.do({ arg i; var a; s.sendMsg( \b_alloc , i, 1024); // allocate table ...
-
... e UGen-doneActions for more detail. // examples ( { var freq; freq = Duty .kr( Drand ([0.01, 0.2, 0.4], inf ), // demand ugen as durations 0, Dseq ([204, 400, 201, 502, 300, 200], inf ) ); SinOsc .ar(freq * [1, 1.01]) * 0.1 }.play; ) ( { va ...
-
... .8); }, [ \ir , 0]).add; ) ( var p, q, r, o; Pbus ( Pgpar ([ Pbind ( \degree , Prand ((0..7), inf ), \dur , 0.3, \legato , 0.2), Pbind ( \instrument , \echo , \dur , 3, \legato , 1.1, \dtime , Pwhite (0.01, 0.1, inf ), \decay , 3), Pbind ( ...
-
... sequencing // s.boot; s.sendMsg( \b_alloc , 10, 128); m = #[0,3,5,7,10]; a = ({rrand(0,15)}.dup(16).degreeToKey(m) + 36).midicps; s.performList( \sendMsg , \b_setn , 10, 0, a.size, a); ( SynthDef ( \stepper , { var rate, clock, index, freq, ...
-
... in response to next and reset. Here is a FuncStream that represents an infinite random sequence: ( var a; a = FuncStream .new({ #[1, 2, 3, 4].choose }); 5.do({ a.next.postln; }); // print 5 values from the stream ) Another useful subclass o ...