-
... maxvel,damp //--objects objs= { var mass= 2; RedObject(world, RedVector2D[width.rand, height.rand], RedVector2D[0, 0], RedVector2D[0, 0], mass, mass); }.dup(n); sprs= objs.collect{|x| objs.collect{|y| if(x!=y and:{0.25.coin}, { RedSpring(x, ...
-
... { SCPen.translate(100, 100); 10.do{ // set the Color SCPen.color = Color.blue(rrand(0.0, 1), rrand(0.0, 0.5)); SCPen.addWedge((100.rand)@(100.rand), rrand(10, 100), 2pi.rand, 2pi.rand); SCPen.perform([\stroke, \fill].choose); } }; w.refres ...
-
... ts the default effects of key presses as follows: Key Effect r valueAction_(1.0.rand) n valueAction_(0) x valueAction_(1) c valueAction_(0.5) ] increment [ decrement up arrow increment down arrow decrement right arrow increment left arrow d ...
-
... t less flexible. Compare these two examples: // first with a Function. Note the random frequency each time 'play' is called. f = { SinOsc.ar(440 + 200.rand, 0, 0.2) }; x = f.play; y = f.play; z = f.play; x.free; y.free; z.free; // Now with ...
-
... html Description Uses succesive iterations of a k-means clustering algorithm on random data with random initial means to form break points in a 2-D space. These are then converted to wavetables in output synthesis based on the oscillator fr ...
-
... height], wgrav, 99, 0); //dim,grav,maxvel,damp //--objects objs= { var mass= 1.rrand(10); RedObject(world, RedVector2D[width.rand, height.rand], RedVector2D[0, 0], RedVector2D[0, 0], mass, mass); }.dup(n); sprs= objs.collect{|x| objs.collec ...
-
... created, but the synth is freed (without fading) ( ~out = { Out.ar(0, SinOsc.ar(Rand(440,550),0,0.2)) }; ) ⧉ ✔ c) custom fade envelope // when a gate arg is provided, and the env can free the synth, this envelope // is supposed to be the fa ...
-
... ok = { Pen.translate(100, 100); 10.do{ // set the Color Pen.color = Color.blue(rrand(0.0, 1), rrand(0.0, 0.5)); Pen.addWedge((100.rand)@(100.rand), rrand(10, 100), 2pi.rand, 2pi.rand); Pen.perform([\stroke, \fill].choose); } }; w.refresh; ) ...
-
... will only post part of the data, or a simplified representation. // n times 200 random numbers // will just add ... etc ... after 123 var n = 3; (1..n).do { |num| { 1000.rand }.dup(200).postln }; ⧉ ✔ posts the compile string, i.e. the code ...
-
... bs", { ReplaceOut.ar( 6, Mix.arFill(7, { CombL.ar(In.ar(4, 1), 0.1, LFNoise1.kr(Rand(0, 0.1), 0.04, 0.05), 15) }) ) }).add; SynthDef("allpass", { arg gain = 0.2; var source; source = In.ar(6, 1); 4.do({ source = AllpassN.ar(source, 0.050, [ ...