-
... 0, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; RedPendulum(world, loc, vel, 0, 60.rand, 20.rand) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(0.5.ra ...
-
... s, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.2.rand2, 0.2.rand2, 0, 0.4); num.do{physics.makeParticle(1, width.rand, height.rand, 0)}; anchor= physics.makeParticle(1, width/2, height/2, 0); anchor.makeFixed; ...
-
... rParticleSystem(0.1, 0.2, 0.3, 0.1); num.do{|i| physics.makeParticle(0.5, width.rand, height.rand, 0)}; anchor= physics.makeParticle(1, width/2, height/2, 0); anchor.makeFixed; springs= physics.particles.do{|p| physics.makeSpring(p, anchor, ...
-
... at.collect(_.name); ~butKeys = g.elementAt(\bt).collect(_.name); // create some random settings: g.elementsDict.do(_.value_(1.0.rand)); ~rnd1 = g.getKeysValues; g.elementsDict.do(_.value_(1.0.rand)); ~rnd2 = g.getKeysValues; // make random ...
-
... aerParticleSystem(0.1, 0.2, 0, 0.1); num.do{|i| physics.makeParticle(0.5, width.rand, height.rand, 0)}; anchor= physics.makeParticle(1, width/2, height/2, 0); anchor.makeFixed; springs= physics.particles.do{|p| physics.makeSpring(p, anchor, ...
-
... 0, 0, 0, 0.1); usr.mouseDownAction= {|v, x, y| var p= physics.makeParticle(1.0.rrand(20), x, y, 0); p.age= maxBorneAge.rand; p.age.div(10).rand.do{|i| var q= physics.particles.choose; if(p!=q, { physics.makeSpring(p, q, 0.1.rand, 0.25.rand, ...
-
... 0, 0, 0, 0.4); usr.mouseDownAction= {|v, x, y| var p= physics.makeParticle(2.0.rrand(15), x, y, 0); p.age= maxBorneAge.rand; p.age.div(10).rand.do{|i| var q= physics.particles.choose; if(p!=q, { physics.makeSpring(p, q, 0.1.rand, 0.25.rand, ...
-
... ter point intervals and the amplitudes. In yet another, just have one point and random walk its amplitude and duration based on the probability distribution. In this implementation I allow the user to initialise a certain number of memory p ...
-
... r. (2000) The New GENDYN Program. Computer Music Journal 24:2, pp 31-38 . NOTE: Random walk is of the amplitude and time delta, not the amp and time directly. The amplitude step random walk uses a Lehmer style number generator whose paramet ...
-
... 0, freq= 400, beat= 1, amp= 1, pan= 0| var z; z= Mix(SinOsc.ar(freq+[0, beat], Rand(0, 2pi), amp*0.5)); Out.ar(out, Pan2.ar(z, pan)); }).add; SynthDef(\saw, {|out= 0, freq= 400, beat= 1, amp= 1, pan= 0, lp= 1000| var z; z= Mix(LPF.ar(LFSaw ...