-
... 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 ...
-
... r. ( /* Binary tracker has only 2 states : note will be playing, or won't. No randomness Arguments are : - Instance of Array, referencing the note's probability to be played. Can only be 0 and 1 here. - Instance of UserView, where the ...
-
... (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 ...
-
example outputs at [soundcloud](http://soundcloud.com/vividsnow/oenci) ( Ndef(\oenci, { var seed = thisThread.randSeed = 100000000.rand.debug('seed'); var tempo = 156/60; var freq = [20, 7200]; var atk = 0.1; var decay = (tempo. ...
-
/********* KeyPlayer example with 9 random synth percussion presets: Type 1 - 9 to select a preset of sounds; type Q, W, E, etc to play sounds type alt-r to toggle/record a loop type alt-p to play it click on lgui button to open a KeyLoopGu ...
-
... 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 ...
-
... olor Colors, Gradients and SCImages can be used with these getter/setters. ( // random colors w = Window ( "colorful" , Rect ( 200 , 200 , 250 , 120 ) ).front.decorate; 7 .do({ |i| SmoothRangeSlider ( w, 30 @ 100 ) .knobColor_( Color .rand( ...
-
... 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 of t ...
-
... lClientIDs; // IDs currently in use r.nextFreeID; // get a free ID (by default, random between 0 and 31 minus those in use) r.usesRandIDs = false ; // switch to get the lowest free ID r.nextFreeID; // get the next free ID // nickname and cl ...
-
... 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, ...