-
... (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; ...
-
... }; // 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 ...
-
... 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 ...
-
... or], ev[\amp], ev[\degree], ev[\dur], ev[\envlen]); }); )); "Fast random modulator frequency".postln; 10.wait; Pdef(\bg, Pbindf(slowstatic, \freq_modulator, fastmod, \envlen, envlen2, \sendtogu ...
-
... 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 ...
-
... 0, 1000)]); //multichannel var gate = Demand.kr(trig, 0, Dwhite(0.0, 1.0)); //A random number, so that gate will be reset var amp = Demand.kr(trig, 0, Dwhite(0.1, 0.3)); var dur = Demand.kr(trig, 0, Dwhite(0.01, 0.4, inf)); var freqBusIndex ...
-
... ixedPitchMode = false; fixedPitch = pitch; this.setAteFunc_(soundmode); this.setRandomBuffer; // get a random sample (if the pool is loaded) } supplyPredatorArray {|argpredatorArray| predatorArray = argpredatorArray; } supplyPreyArray {|arg ...
-
i found this somewhere as an example of obtrusive coding. i don't know who the original author is, sorry. I cleaned it a bit up as a study tool for myself. (learned a lot from this patch) ( { var lk = [0,3,7,9], jx = [3,4,2,4,2], n, ox = 1 ...