-
... 0.5); //--add new particles and update old sys.add(RedParticle(world, w.mouse+5.rand2, 0, RedVector2D[2.rand2, 10.rand], 1.5, 5.rand).age_(40.rrand(50))); sys.addForce(world.gravity); sys.update; //--render sys.do{|o| //iterate all particle ...
-
... 0.5); //--add new particles and update old sys.add(RedParticle(world, w.mouse+5.rand2, 0, RedVector2D[2.rand2, 10.rand], 1.5, 5.rand).age_(40.rrand(50))); sys.addForce(world.gravity); sys.update; //--render sys.do{|o| //iterate all particle ...
-
... = Color.red w.draw{Pen.fillColor= Color.black; Pen.fillOval(Rect.aboutPoint(175.rand@175.rand, 50, 50))} w.play //start drawing w.stop ( //mouse control w.draw{ var radius= 100.rand; Pen.fillColor= Color.blue(0.5, radius/100); Pen.fillOval( ...
-
... "test").front().action_({ |v| v.postln; }).labelText_("Label test").value_(1.0.rand).value.postln; * SCMRangeSliderView() * * AUTHOR: Marinus Klaassen (2012, 2021Q3) */ SCMRangeSliderView : SCMViewBase { var <spec, <labelText, <range, <ran ...
-
... ibi (-1, -0.75 .. 1).biuni; (-1, -0.75 .. 1).biuni(0.01).round(0.001); f = { 10.rand * 0.1 }.unibi; f.value; f = { 10.rand * 0.1 }.unibi(0.01); f.value.round(0.001); f = { 10.rand2 * 0.1 }.biuni; f.value; f = { 10.rand2 * 0.1 }.unibi(0.01); ...
-
... ibi (-1, -0.75 .. 1).biuni; (-1, -0.75 .. 1).biuni(0.01).round(0.001); f = { 10.rand * 0.1 }.unibi; f.value; f = { 10.rand * 0.1 }.unibi(0.01); f.value.round(0.001); f = { 10.rand2 * 0.1 }.biuni; f.value; f = { 10.rand2 * 0.1 }.unibi(0.01); ...
-
... ons s2 = cross.notes; // will die after a few generations splice = ((s1.size-2).rand + 1).max(1); // splice coordinates spl2size = rrand(3, (s2.size * 0.7).roundUp.asInteger); spl2 = (s2.size - spl2size).rand; newSeg = s1.copyRange(0, splic ...
-
... arg ress = 0, choose = 0; var klank, env; klank = Klank.ar(`[choose !12, {Rand(0.128,0.700)}!12],BrownNoise.ar(0.7)); klank = klank; env = EnvGen.kr(Env.perc(0.07, ress), doneAction:2); Out.ar(0, klank*env.dup*0.000128); }). ...
-
... armonic shift // possible binary operators // +, -, *, /, min, max, wrap, clip, rand, round n + Note ( "A1" ); n + 1; (n / 2).asCompileString; n.rand; // only whole notes; no cents
-
... panning, copied 8 times Pan2.ar(SinOsc.ar(freq2*(10+25.rand), 0, Lag.ar(LFSaw.ar(Rand(0.025, 1))+1*0.5))*0.125, SinOsc.ar(1/timA[0])) }); st = st+1; // rep and timM changes ...