-
... rate, 0, BufFrames .kr(0))) }.play(s); ) x.set( \rate , 5); y.set( \rate , 2.0.rand); x.set( \rate , 2);
-
... . a = [ nil , 1, 2, 3, "wort" , "1" , [pi, 2pi]]; a.any { |x| x.matchItem(10000.rand) }; // true always Function :matchItem(item) Test item by passing it to a function which should return a Boolean . a = [10, 20, 30, { |item| item.isPrime } ...
-
... ftSet , softPut . Ndef ( \test , { |freq=200| Splay.ar( SinOsc .ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef ( \test ).play(vol: 0.1); // example of softSet, softSet which knows lastVal, // softVol_ and softVol_ which knows lastVol: ( w ...
-
... , freq=440, sustain=0.05, pan=0, amp=0.1; var env; env = EnvGen .kr( Env .perc( Rand (0.001, 0.02), sustain, AmpCompA .kr(freq)*amp), doneAction:2); Out .ar(out, Pan2 .ar( SinOsc .ar(freq), pan, env)) }).add; ) ( a = Plambda ( Pseq ([ Pfind ...
-
... d with the array indexing syntax: a = NodeProxy .new.play; a[0] = { SinOsc .ar( Rand (200, 899)) * 0.1.dup }; a[2] = { SinOsc .ar( Rand (200, 899)) * 0.1.dup }; a.sources.do( _ .postcs); // using multiple index expands into multiple objects ...
-
... h: //mag; //[mag, phase]; //[mag, phase] / 3; //[mag, phase].sqrt; //[mag, 3.14.rand]; //[mag, LFNoise0.kr.range(0, 3.14)]; //[mag * Dseq([1, 0, 0, 1, 1, 0, 1, 0].stutter(8), 999999999999)]; // Can even use Demand ugens! One val demanded ea ...
-
... 5) // initial location of x .y_(1) // initial location of y .knobColor_( Color .rand) .action_({ |sl| [ \sliderX , sl.x, \sliderY , sl.y].postln; }); t.step_(0.01); n= CompositeView .new(w, 200@300); n.decorator= FlowLayout (n.bounds); v = ...
-
... " , y = s.nextNodeID, 0, 1); Routine ({ 30.do({ s.setSharedControl(0, 300 * (10.rand + 1)); 0.2.wait; }); s.sendMsg( \n_free , x); s.sendMsg( \n_free , y); }).play; ) s.quit;
-
... ine ({ var table,pitch; table = [0,2,4,5,7,9,11,12]; inf .do{ pitch = (48+(12*2.rand) + table.choose).midicps; s.sendMsg( "s_new" , "frqShift1" ,-1,1,1, "frq" ,pitch); 3.wait; }; }; ).play; ) ( // shift pulse wave in opposite directions Syn ...
-
... ring, { var out; Environment .use({ // set values in the environment ~freq = exprand(80, 600); ~amp = 0.1 + 0.3.rand; ~pan = 1.0.rand2; // call a randomly chosen instrument function // with values from the environment out = [a,b,c].choose.v ...