-
... L.ar(Saw.ar(MouseX.kr(440,1760),0.5),c.bufnum, d.bufnum, 1.0),1000,0.1)}.play //random buffers; this code may lead to repeated indices, but shouldn't affect the result (will just add to sum) ( a=Array.fill(10,{[rrand(0,50),0.2.rand2, rrand( ...
-
... rray of integer indices of possible next states. The initial state is chosen at random from the array of entry states. That chosen state's item is returned, and the next state is chosen from its array of possible next states . When the end ...
-
... if (down) { NTMI.slots.stepNext(slIndex, 1) } }; "snd up" } ) }; }); // bt 9 -> random preset m.elAt(\bt, \9).elemDesc.label = "rand pre"; m.elAt(\bt, \9).action.add(\randPre, { |randBt| if (m.getHalo.mode == \slot and: (randBt.isOn)) { m.g ...
-
... .sort; ); z = UScore(*r); x = UScoreEditor(z); y = UScoreEditorGUI(x); ) ( ( // random rhythm a = [ 0, 2, 4, 5, 7, 9, 11, 12 ].scramble; r = ( 192.collect({ |i| UChain( i.linlin(0,192,1,26),i%8,0.2,true, [ \sine, [ \freq, (a[i%8] + 64).midi ...
-
... Dict.size; // test switching gui between pages: // turn all knobs in group 0 to random value k.elAt(\kn, 0).do(_.value_(1.0.rand)); // now switch to scene 1 - all knobs are at 0 g.pagesSwitch.valueAction_(1); // turn all knobs in group 1 to ...
-
... a = 2048; s = Server.local; // kernel buffer g = Buffer.alloc(s, a, 1); ) ( // random impulse response g.set(0, 1.0); 100.do({ |i| g.set(a.rand, 1.0.rand) }); { var input, kernel; input = SoundIn.ar(0); kernel = PlayBuf.ar(1, g.bufnum, Buf ...
-
... rse far less efficient than send , but it can make sense; e.g. the synthdef has random elements. UGens like Rand(300, 400) create new random values on every send, while client-side random functions like exprand(1, 1.3) only get built once; ...
-
... rns control to the parent upon nil from either branch. Pseed(randSeed, pattern) Random number generators depend on seed values; setting a specific seed produces a repeatable stream of pseudorandom numbers. Pseed sets the random seed before ...
-
... m.mix.round(0.01)); data.put(string ++ "level", item.level.round(0.01)); }); // Random Generator: modulRandomGenerator.do({|item| // solo hay uno var string = "/random/"; data.put(string ++ "mean", item.mean.round(0.01)); data.put(string ++ ...
-
... ; //Arrays for the bank of resonators, mostly harmonics near 5ths and 9ths, and random amplitudes: resFreqArray = [2, 2.98, 4.75, 6.21, 9, 9.15, 11.87]; resAmpArray = [0.5, 0.38, 0.21, 0.15, 0.17, 0.13, 0.05]; resDecArray = [0.86, 0.72, 0.3 ...