-
... r.localAddr.sendMsg(\closed, \sText); }; win.front; presetsPop.items= #["", "15 random values", "Octaves", "Overtones", "Overtones2", "Cmaj7", "D#m", "Rumba"]; presetsPop.action= {|view| switch(view.value, 0, { amplitudesText.string= ""; fr ...
-
... note , Pwhite (50, 100) ],[ \dur , 4/5, \in , b, // change delaytime per "bar", random add avoids repeating echo frequencies \dtime , Pshuf ([1, 2, 4]/40, inf ) + ( Pwhite (-0.5, 0.5)/40), \decay , 3 ],[ \dur , 4/5, \in , c, // change modFr ...
-
... tory; ArrayGeneratorDef.loadOnceFromDefaultDirectory; ^(editDefs ?? { [ \line, \random, \offset, \scale, \tilt, \curve, \smooth, \round, \rotate, \sort ] }) .asCollection .collect({ |item| ArrayTransformer.fromDefName( item ) }) .select(_.n ...
-
... .openLetter(letter, nickname, stamp); }; }); resp.add; fork { 1.0.rand.wait; // random answer.. q.addr.sendMsg(\me, q.nickname, msg[1], id); 1.0.wait; if(q.responderActive(resp)) { "sender changed mind.".postln; resp.remove } } }).add; // t ...
-
... / ev.dt).do { |i| // send OSC messages for analog and imu at typical rates, // random drift unless played otherwise by some sim interface. // imuvals and temperature: imuvals = imuvals.collectInPlace { |val| (val + 0.2.rand2 * 0.95).fold2( ...
-
... that does nothing runs really fast bench({ nil }); // filling a big array with random numbers takes a while longer. bench({ Array.rand(100000, 0.0, 1.0) }); // different operations may take different times bench({ 1000000.do { 3.sqrt.cos } ...
-
... %, depth %".format(node.location, node.depth), false); }; // Now we create some random spatial points, and do a NN query. // If there is a "tie-break" in NN queries then the order of preference // is arbitrary, so we have to test not on wha ...
-
... %, depth %".format(node.location, node.depth), false); }; // Now we create some random spatial points, and do a NN query. // If there is a "tie-break" in NN queries then the order of preference // is arbitrary, so we have to test not on wha ...
-
... }; // initialize here! NTMI.inph.seedRand(NTMI.inphlux, 2011); // set center a random preset NTMI.inph.centerToRandPreset = { |q, infl, preset| var nuP = preset.getSetNames.choose.postln; infl.offsetsFromPreset(preset, nuP); NTMI.inphlux.r ...
-
... (a, {1.0.rand}.dup(a.size)) // Should be very small correlation with indpendent random stuff // Kendall's W statistic: a non-parametric correlation test between separate raters' rankings of a common set of objects. // The input array should ...