-
... cs)...".postln; 1000.do{ thesynth.set('t_gate', 1, 'input', p.choose + {0.5.sum3rand}.dup(d)); 0.01.wait; }; }, { |c, subtots| c.sortBy(0); c = (p-c).flat.abs; this.assertArrayFloatEquals(c, 0.0, "clustering %D fuzzybinary data should appro ...
-
... n=5; var snd = ({ var in = LFClipNoise.ar(dustfreq.lag(lag), LFPulse.ar( hack * Rand(0.5, 2), Rand(0, 2pi), width+Rand(-0.3, 0.4)) ); Ringz.ar(in, ffreq.lag(lag) * LFDNoise1.kr(move-0.05, 0.95, 1), 1.25/hack ) } ! n) .clump( q.numChans ).su ...
-
//example using the RedWaveSystem class. angluar velocity changes at random ( var width= 300, height= 300, w, wgrav, world, n= 50, sys, spook= 0; //--world w= RedWindow("wavesystem test", Rect(128, 64, width, height)).front; wgrav= RedVecto ...
-
... erben" einführen geht so: ~verben['?'] = { |liste| liste.do({ |x| x.put(\rate, rrand(2.0, 2.2)) }) }; ~sage.value("the missile knows greater at all times ?"); // mit weniger mickey mousing: ~verben['?'] = { |liste| liste.do({ |x| x.put(\rat ...
-
... s \ 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\); //litt ...
-
... { Signal.listOfWindows.do({ arg wName; var length = [511, 512, 1023, 1024, 9999.rand]; length.do({ arg len; var window = Signal.performKeyValuePairs(wName, [\size, len, \sym, true]); this.assertArrayFloatEquals( window.reverse, window, "Sym ...
-
... hold down ALT while clicking to create or edit those. l = LinearSpline({ { 4.0.rand } ! 2 } ! 9); l.gui l = LinearSpline({ { 4.0.rand } ! 6 } ! 12); v = VectorSplineGui(l).gui(nil,1000@1000); // used like a long envelope b = LinearSpline( ...
-
... 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 ...
-
... 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: ...