-
//Bouncy_Balls //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Bouncy Balls", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width ...
-
//Bouncy_Balls //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Bouncy Balls", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width ...
-
... /www.cs.toronto.edu/~roweis/notes/matrixid.pdf [2, 3, 4].do{|matsize| a = {{2.0.rand}.dup(matsize)}.dup(matsize).as(Matrix); b = {{2.0.rand}.dup(matsize)}.dup(matsize).as(Matrix); c = {{2.0.rand}.dup(matsize)}.dup(matsize).as(Matrix); tests ...
-
... edVector2D[0.gauss(2), 0.gauss(2)]+(n/2); RedObject(world, loc, RedVector2D[1.0.rand2, -2.0.rand], nil, 15, pixelSize); //world,loc,vel,acc,mass,size }; }; //--loop w.draw{ Pen.smoothing_(false); Pen.strokeColor= Color.green; rep.loc= w.mou ...
-
... edVector2D[0.gauss(2), 0.gauss(2)]+(n/2); RedObject(world, loc, RedVector2D[1.0.rand2, -2.0.rand], nil, 15, pixelSize); //world,loc,vel,acc,mass,size }; }; //--loop w.draw{ Pen.smoothing_(false); Pen.strokeColor= Color.green; rep.loc= w.mou ...
-
... = 0.5; //AlgaScheduler.verbose = true; Alga.boot({ AlgaSynthDef(\t, { SinOsc.ar(Rand(220, 2000)) * EnvGen.ar(Env.perc) * 0.1 } ).add; AlgaSynthDef(\t_const, { SinOsc.ar(Rand(220, 2000)) * 0.01 } ).add; AlgaSynthDef(\bypass, { \in.ar } ).add ...
-
... le open ( ~player.schedAllArrays([ [\this, 2.0, 4] + 3, [\more, 0.5, 5.0] + 4.0.rand, [\that, 3.0, 4.5], ] * rrand(0.5, 1.5)); ) // moving in the timeline ( Tdef(\x, { var endTime = ~player.lastEndTime; inf.do { ~player.jumpTo(endTime.rand) ...
-
... = 0.3, amp= 1, pan= 0| var e, z, freqs, amps, rings; freqs= Array.geom(4, freq, Rand(1.5, 2.5)); amps= Array.geom(4, 0.5, Rand(0, 1)); rings= Array.geom(4, maxDur, Rand(0, 1))*maxDur; e= EnvGen.ar(Env.perc(0.01, maxDur), 1, amp, doneAction: ...
-
... = 0.3, amp= 1, pan= 0| var e, z, freqs, amps, rings; freqs= Array.geom(4, freq, Rand(1.5, 2.5)); amps= Array.geom(4, 0.5, Rand(0, 1)); rings= Array.geom(4, maxDur, Rand(0, 1))*maxDur; e= EnvGen.ar(Env.perc(0.01, maxDur), 1, amp, doneAction: ...
-
... .ar(rate * [1, 1.2]), freq, dt)*0.1 }; a.play; ( a[1] = \set -> Pbind ( \dur , Prand ([1, 0.5], inf ), \freq , Pwhite (200.0, 1000, inf ), \rate , Pstutter (4, Prand ([1, 3, 6, 10], inf )), \dt , Pwhite (0.01, 0.1, inf ) ) ); // modify the ...