-
... AL entropy of anything with the same range (here 0 to 1): ~tree = KDTree ({[1.0.rand, 1.0.rand]}.dup(1000)); ~tree.entropyNN; // The following should have a lower entropy than the above: KDTree ({[1.0.linrand, 1.0.linrand]}.dup(1000)).entro ...
-
... AL entropy of anything with the same range (here 0 to 1): ~tree = KDTree ({[1.0.rand, 1.0.rand]}.dup(1000)); ~tree.entropyNN; // The following should have a lower entropy than the above: KDTree ({[1.0.linrand, 1.0.linrand]}.dup(1000)).entro ...
-
... for it: e.makeWindow = { |env| var win, cnt; win = Window( "e", Rect( 128 + 100.rand, 300 + 100.rand, 400, 52 )).front; win.addFlowLayout; cnt = SimpleController( env ); win.onClose_({ cnt.remove }); // remove controller at window close env ...
-
code:: // simple random keyboard player ( s.boot; s.latency = nil; // make sure we respond quickly thisThread.randSeed = 2014; k = KeyPlayer(\rand); "qwertzuiopasdfghjklyxcvbnm".do { |char| var note = (midinote: rrand(36, 96), dur: rrand(0. ...
-
... 2, 0], [0, 0.3, 0.3, 0.3])); // A bit of FM adds 'warble' son = son * LFTri.ar({Rand(1.0, 1.8)}.dup(6), 1, 0.3, 0.7); // Mix down the partials in the main sound son = son.mean; strike = SinOsc.ar(LFNoise1.ar(freq * 36, 100, freq*8), 1, 0.1) ...
-
... me: \grainBufASR, group: self.group, synthArgs: [ \bufnum, self.bufnum, \rate, rrand(self.rateMin, self.rateMax), \startPos, self.startPos + rand(1.0) - self.durMax, \gainDB, rrand(-25, -18), \trimDB, self.trimDB, \att, rrand(self.attMin, s ...
-
... w(w,Rect(100,100,200,200)); // nil bounds f = FlowView(c); c.background = Color.rand; f.background = Color.rand; cb = c.absoluteBounds; fb = f.absoluteBounds; this.assertEquals( cb.origin, fb.origin, "with no supplied bounds, origin should ...
-
... stAddr(n.hostname, n.port); Tdef(\toscTest, { inf.do { n.sendMsg('/accxyz', 1.0.rand2, 1.0.rand2, 1.0.rand2); if (0.1.coin) { n.sendMsg('/xfader'.postln, 1.0.rand); }; if (0.1.coin) { n.sendMsg("/1/fader4".postln, 1.0.rand); }; 0.1.wait; }; ...
-
... , ascale = 1, dscale = 1| var n = q.numChans ? 2; var mods, snds; // var dist = Rand(0, 7); // choose new random distrib when running // var addd = exprand(0.001, 1); // choose new random distrib when running dist = dist.lag(1); addd = addd ...
-
... ters for synthesis networks etc. Creation / Class Methods *new (argPoolSize, argRandomChromosomeFunc, argFitnessFunc, argMutationFunc) argPoolSize - Number of items in the gene pool. Should be tuned for each problem. Default: 100 argRandomC ...