-
... and 12000 is slower still // 120000 hasn't (yet) been tried 120.do({ n.fill(1.0.rand, 0, 0, 1.0.rand); n.rect(5.rrand(200), 5.rrand(100), 10, 10); n.oval(20.rrand(200), 20.rrand(200), 10, 10); n.arrow(40.rrand(200), 40.rrand(300), 10); n.st ...
-
... c = CombL.ar(m+(LocalIn.ar(2)*0.8),4,r.clip(0.0001,4),r*4); l = Resonz.ar(c,TRand.kr(20,20000,m),0.1,1000).tanh; LocalOut.ar(m+l); m+c; }.play ) ( Ndef(\fbTimerSel){ m = (Dust.ar(0.5!2)*20).tanh+\in.ar(0!2); r = Timer.kr( ...
-
... 5; //number of centroids ~www= world; //--objects { var loc= RedVector2D[width.rand, height.rand]; var vel= RedVector2D[0.3.rand2, 0.3.rand2].round(0.1); RedObject(world, loc, vel, 0, 1, 3); //world,loc,vel,acc,mass,size }.dup(n); kmeans= ...
-
... 5; //number of centroids ~www= world; //--objects { var loc= RedVector2D[width.rand, height.rand]; var vel= RedVector2D[0.3.rand2, 0.3.rand2].round(0.1); RedObject(world, loc, vel, 0, 1, 3); //world,loc,vel,acc,mass,size }.dup(n); kmeans= ...
-
... *** rshift 4 action: slot1 PREV ndef --- right bottom button \touchMove selects random new ndef on a slot --- TEST: hold down bottom right \touchMove, then click on any left button -> posts *** rshift ? action: slot1 RAND ndef 3. LEFT SIDE: ...
-
... o = "C-2", hi = "G8"; ^Note(midi: midi.clip(lo.asNote.midi, hi.asNote.midi) ) } rand { arg lo = "C-2", step = 1; lo = lo.asNote.midi; ^Note(midi: (midi - lo).rand.round(step) + lo); } *rand { arg lo = "C-2", hi = "G8", step = 1; ^hi.asNote. ...
-
... guments g.positionStart_({|o| o}); //no change g.positionStart_({|o, i| [0, 0.2.rand, 0.5].foldAt(i)});//pattern with random element g.positionStart_({|o| o+0.0015.rand2}); //minimal drunk g.positionStart_({|o| o+0.01.rand2}); //little drun ...
-
... Pbind(*[ dur: Pseq([1.2, 0.2, 0.5, Pseries(0.1, -0.001, 100)], inf), pan: Pxrand(#[-0.5, 0.5, 0.1, -0.1, 0.8, -1], inf), freq: 40, instrument: \brumm ]).play(); ) ( Pbind(*[ dur: Pseq([1.2, 0.2, 0.5, Pseries(0.1, -0.001, 100 ...
-
... ector3D which are roughly 10% faster than RealVector. Creation / Class Methods *rand (size, lo, hi) random vector. size - dimension of vector. lo , hi - range of values RealVector .rand(4,-6.0,6.0); *canonB (i, n) ith element of canonic bas ...
-
... onfetti 2 /*Imagine a box that is divided into smaller compartments. You start randomly throwing beads (or marbles or grains) into it. Wheneven one compartment is full, you stop. Check how many beads there are in a compartment whenever a b ...