-
... prepare current Environment ( ~start = 100; ~grow = 1.1; ) // from ascending to random x = p.play; // replace ~grow = 0.99; ~grow = 1.4; x.stop; ⧉ ✔ helpfile source: /tmp/scquark_hs/miSCellaneous_lib/HelpSource/Classes/PLgeom.schelp link::C ...
-
... /dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; //random position var vel= RedVector2D[4, 4].rand2.round(2); //quantise velocities var mass= 2.rrand(14); RedObject(world, loc, vel, 0, mass, mass*5); //world,loc ...
-
... ver PARAM *5000 samples (ie down to about 10 Hz, sampling rate dependent) 1 new random breakpoint from PARAM.rand2 2 new breakpoint by perturbing last breakpoint amp by PARAM 3 new breakpoint by interpolating from last breakpoint amp to its ...
-
... s methods Instance Methods Inherited instance methods Examples // fast notes of random duration for 0.5 seconds // then a single note for 0.5 seconds ( a = { var freq = Duty.kr( Dseq([ Dconst(0.5, Dwhite(0.05, 0.08, inf)), 0.5 ], inf), 0, / ...
-
... ethods Examples // Load some buffers Bufdef(\yo, s, "~/test-sounds"); // Play a random one Bufdef(\yo).choose.play ⧉ ✔ helpfile source: /tmp/scquark_hs/PolyBuf/HelpSource/Classes/Bufdef.schelp link::Classes/Bufdef::
-
... es a= RedSmooth(0.05); a.filter(1.0.rand); //run repeatedly - low pass filtered random data //plot example a= RedSmooth(0.1); ~squarewave= (0..1000).collect{|x| (x%200>100).binaryValue}; ~smoothed= ~squarewave.collect{|x| a.filter(x)}; [~sq ...
-
... markov set is to simply leave the data as it is and to iterate over it by doing random jumps and looking for the next matching item. The item that follows that one is the next item of the chain. As this requires searching the data, which ca ...
-
... Scale degrees going down Pdef(\b, Pbind(\dur, 0.25, \degree, Pseq((3..0)))); // Random scale degrees Pdef(\c, Pbind(\dur, 0.125, \degree, Pwhite(0, 10, 8))); // Use the L-system to put together a sequence of keys // Psym will then retrieve ...
-
//k-means clustering2 //points in space moving around at random - kmeans find central point and draw a blob ( var width= 640, height= 480, w, wgrav, world, n= 100, kmeans; //--world w= RedWindow("k-means2", Rect(128, 64, width, height)).fro ...
-
... valuate . valueArray . valueArrayEnvir . valueEnvir Examples // so for example, random values will result in a single instance: a = Thunk({ \done.postln; rrand(2.0, 8.0) }); a.value; // posts "done" a.value; ⧉ ✔ // it is an AbstractFunction ...