-
//Random_Arboretum //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Random Arboretum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, ...
-
//Random_Arboretum //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Random Arboretum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, ...
-
... ver PARAM *5000 samples (ie down to about 10 Hz, sampling rate dependent) 1 new random point from (PARAM.rand,PARAM.rand) 2 new point by perturbing last point by PARAM 3 new point by interpolating from last point to its inversion (x,y) -> ( ...
-
... } }; return.(nil) } }; ~findNext = { |index| var obj = ~keyList.at(index); var randomOffset = ~keyList.size.rand; ~find.(obj, ~keyList, randomOffset) ? index }; ); // a few tests a.getFFT(56, 1, ~fftSize, { |c| defer { c.magnitude.plot } } ...
-
... 0.02); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector[0.5, 0.5].rand2; RedPendulum(world, loc, vel, 0, 1.rrand(5), 5.rrand(80)) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(1 ...
-
... 0.02); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector[0.5, 0.5].rand2; RedPendulum(world, loc, vel, 0, 1.rrand(5), 5.rrand(80)) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(1 ...
-
... DIOut(0); m.connect m.latency = 0 m.control(chan: 1, ctlNum: 2, val: 127.rand); m.noteOn(16, 127.rand, 128.rand); m.noteOff(16, 61, 60); m.allNotesOff(16);
-
... req, rq); y = Integrator.ar(y, 0.99); y = Mix.fill(qnty, { CombL.ar( y, 0.1, (7.rand + 1) / (8.rand + 1) * 0.001, // Partch tonality diamond about 1000Hz 5 ); }); },[],\audio); Instr([\percOrc4, \monoClav],{arg trig=0.0,qnty=3,freqOffset=30 ...
-
... w.bounds; x = CompositeView(w, w.view.bounds.insetBy(20,20)) .background_(Color.rand) .resize_(i); y = CompositeView(x, x.bounds.moveTo(0,0).insetBy(20,20)) .background_(Color.rand) .resize_(i); y.decorator = FlowLayout(y.bounds).gap_(0.0 @ ...
-
... //dim,grav,maxvel,damp //--objects { var loc= RedVector3D[width, height, depth].rand; var vel= RedVector3D[2, 2, 2].rand2; var acc= RedVector3D[0, 0, 0]; var mass= 0.5.rrand(4); var obj= RedBoid(world, loc, vel, acc, mass, mass*10) .maxForc ...