-
... ighlife rule= #[[2, 3], [0, 3]]; //rule "23/30" modded conways game of life //--loop w.draw{ world.objects.do{|o, i| var neighbours= 0; world.objects.do{|oo, j| if(i!=j, { if(o.loc.distance(oo.loc)<(o.size*2).min(oo.size*2), { if(oo.state[\ ...
-
... ; }; //--system sys= RedParticleSystem.new; sys.removeAction= makeParticle; //--loop w.draw{ //--create a new particle and update the old ones if(n>0 and:{0.051.coin}, { makeParticle.value; n= n-1; }); sys.addForce(world.gravity); //world g ...
-
... ternally to calculate a working maximum velocity. When running moveFlock() in a loop, this is the interval of waiting to get movement at speed. If this is set lower than the wait interval in a loop, the flock appears to move in slow motion ...
-
... c,vel,acc,mass,size }.dup(n); kmeans= RedKMeans(~k, 10); //cluster analyser //--loop w.draw{ var groups= {List.new}.dup(~k); var colors= {|i| Color.hsv(i/(~k-1), 0.8, 1)}.dup(~k); kmeans.k= ~k; kmeans.update(world.objects.collect{|o| o.loc} ...
-
... )); }).add; ) ( var a = Plorenz(10, 28, 2.667, 0.01, 0,09, 2.9, 24).asStream; { loop { var x, y, z; #x, y, z = a.next; Synth(\help_sinegrain2, [\freq, x * 600 + 300, \pan, -1]); 0.02.wait; Synth(\help_sinegrain2, [\freq, y * 600 + 300, \pan ...
-
... ternally to calculate a working maximum velocity. When running moveFlock() in a loop, this is the interval of waiting to get movement at speed. If this is set lower than the wait interval in a loop, the flock appears to move in slow motion ...
-
... ass*5) //world,loc,vel,acc,mass,size .maxForce_(0.6.rrand(1.6)); }.dup(~n); //--loop ~win.draw{ if(~world.gravity[0]>1, { ~win.background= Color.red(1, 0.5); }, { ~win.background= Color.blue(~world.gravity[1], 0.5); }); ~world.objects.do{|o ...
-
... ndomness, 1 = totally random #w, x, y, z = MonoGrainBF.ar(PlayBuf.ar(1, buffer, loop: 1), winsize, grainrate, 0, azimuth, azrand); out = DecodeB2.ar(2, w, x, y, 0.5); Out.ar(0, out); }).add; ) s.sendMsg(\s_new, \monograinbf, 1000, 0, 0, \bu ...
-
... 4, 2, 1, 0, -1, -2], inf); str = Pavaroh(pat, aroh, avaroh).asStream; Routine({ loop({ synth.set(\freq, midicps(str.next + 60)); rrand([0.1, 1.0].choose, 0.5).wait; }); }).play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSour ...
-
... oveAction= {|o| synths.at(o.hash).release}; //free synth when particle dies //--loop w.draw{ //--create a new particle and update the old ones var newPart= RedParticle(world, w.mouse+5.rand2, 0, RedVector2D[2.rand2, -10.rand], 1.5, 5.rand). ...