-
... ceiver. [nil, 2, nil, 3].collect { |x| x ?? { 100.rand } }; // replace nil by a random number ⧉ ✔ . booleanValue Returns false. [1, 2, nil, 3].collect(_.booleanValue); // compare: [true, false, false, true].collect(_.binaryValue); ⧉ ✔ . rat ...
-
... (0.1pi); Pen.translate(20, -20); Pen.fillOval(r); } }; w.front; ) ⧉ ✔ Redraw at random interval, different every time: ( var w, run = true; w = Window("my name is... panel", Rect(128, 64, 800, 800)); w.view.background = Color.white; w.onClo ...
-
... e parameter is a single number from 0.0 to 1.0 giving the chance of a jump to a random event in the source. You can pass an Array in that has two parameters, being [randomoffsetchance, quantise grid of offsetcutting in beats]. Ie, [0.3, 0.5 ...
-
... }; // Assign the variable a Function as a value f.value; // 3.0.rand returns a random value from 0.0 to 3.0 (exclusive). f.value; // Another random value f.value; // Yet another random value ⧉ ✔ By using the "value" method Functions and ot ...
-
... t position of Arrive on the fly. Evaluate this a few time to move the entity to random points. ( ~steeringBehavior.targetPos = RealVector2D[rrand(15.0, 24.0), rrand(15.0, 25.0)]; ) ~unit1.remove; ⧉ ✔ We are going to have a look at the rest ...
-
... 4, 0.33422267436981, 0.43586611747742, 0.90562689304352]); //hardcoded parents. randomize parent genomes above for quite different results RedGA.crossOverRate= 0.5; c= {RedGA.breedMultiPoint(parent0, parent1).choose}.dup(n); }) //-- //testi ...
-
... extN(20) ... // maxLength defines the maximum number of items - // in case of a randomly generating item or a low summation limit // the overall stream might have to end earlier. b = PSVunion([7, 17, 29], 30).asStream b.all // if the summat ...
-
... zeSum normalize perfectShuffle performInPlace rank shape reshape find replace asRandomTable tableRand msgSize bundleSize asciiPlot Ambisonic Toolkit detectHoaOrder clumpByHoaDegree Inherited instance methods Undocumented instance methods ad ...
-
... us = 0, effectBus, direct = 0.5, freq = 440; var source; // 1.0.rand2 returns a random number from -1 to 1, used here for a random pan source = Pan2.ar(Decay2.ar(Impulse.ar(Rand(0.3, 1), 0, 0.125), 0.3, 1, SinOsc.ar(SinOsc.kr(0.2, 0, 110, f ...
-
... key Play samples by giving key numbers. If no key number provided, it chooses a random MIDI key number. Defaults are also provided by SamplerArguments class. Arguments: keynums The MIDI key numbers to play, can be a single number, an array ...