-
//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 ...
-
... 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.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.kr(Env.perc(0.01, maxDur), 1, amp, doneAction: ...
-
... (world, RedVector2D[x, y], nil, nil, 0, 1/n*width) .coupling_(0.1/n) .freq_(0.1.rand) .phase_(2pi.rand) }; //--loop w.draw{ world.objects.do{|o| world.objects.do{|p| if(p!=o, { o.couple(p); }); }; }; world.objects.do{|o| o.update}; //--rend ...
-
Quaternion: Filter: Description Class methods new rand Inherited class methods Instance methods a b c d coordinates conjugate norm distance Inherited instance methods Examples Classes (extension) | Math | Libraries > MathLib'>MathLib > Math ...
-
... )); // by both x and y g.nudge(*i.deltaFor(-0.1, 0.1)); g.nudge(*i.deltaFor(0.1.rand2, 0.1.rand2)); // influence the process by 2dslider // - the further away from center, the bigger the deltas z = Slider2D().front; z.action = { |sl| var x ...
-
... z.name = "test"; z.value = [-1,1]; // x, y, optional hat button z.value = Array.rand(2, -1.0, 1.0).postln; z.valueAction = Array.rand(2, -1.0, 1.0).postln; z.action = { |v| v.value.postln }; z.valueAction = [1.rand2,1.rand2, 2.rand] .postln ...
-
... b, c are. Let's define them one by one and hear how "abc" sounds different: // randomly varying impulses t.quelle(\a, { Impulse.ar(LFNoise1.kr(0.1).range(1, 4)) }); // a resonant low pass filter with cursor control and a random offset t.fi ...
-
... ton imitates SC style multistate button i.states_([ ["zero", Color.black, Color.rand], ["one", Color.black, Color.rand], ["two", Color.black, Color.rand] ]); i.value_(0); i.value_(1); i.item; i.item_("two"); // not implemented i.states[i.va ...