-
... ", "Gadget", "MarkerFelt-Thin" ].choose, 11)) }); r = { inf.do { |i| thisThread.randSeed_(1284); a.do { |item| // setting GUI values is asynchronous, so you must use .defer { item.bounds = Rect( 5 + w.bounds.extent.x.rand * abs(cos(i * 0.01 ...
-
... rd 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.1)); k.putDown(char, { |char| ...
-
... { rMViews[1].value_(NTMI.inph.presIndex); rMViews[2].value_("seed" + NTMI.inph.randSeeds[NTMI.inph.presIndex]); NTMI.g.main.bigUVUpdate; } } }); rMViews[0].action.add(\setzoom, { |mv| NTMI.setZoom(mv.value) }); rMViews[0].label_(\zoom).val ...
-
... : //// TODO: should also take strings for codefile paths ... NTMI.defaults.inph_randSeeds = [ 7, 13, 23, 42, 86, rrand(0, 1000), \diagL ]; // // the preset key/name to set on startup NTMI.defaults.inph_presIndex = 0; /* NTMI.defaults.postIn ...
-
... ; // same random choices every run ({[0, 5, 7].choose} in a command) thisThread.randSeed = 1234; "RADTEST:SETUP".postln; // setup waits longer: building the mixer pauses for the server, and a // command typed before it is ready fails (seen ...
-
... dioFunc = ( 'blip': { |rate = 1, freq = 100, noiseLevel = 0.125, blipLevel = 1| RandSeed.ir( 12345 ); // always the same noise ( Blip.ar( freq, 100, blipLevel * 0.125) + PinkNoise.ar( noiseLevel )) * LFPulse.kr(10 * rate); }, 'buf': { |bufP ...
-
... nitor.isPlaying, NTMI.g.main.sliderCols[0], NTMI.g.main.sliderCols[1]); var ndefRandSeed; var isDecoupled = NTMI.inph.decoupled.includes(ndef.key); var presetName = NdefPreset(ndef).currSet.key; var newLabel = ndef.key.asString; if (presetN ...
-
... ample 2: the reset function ( f = { 33.rand }; x = FuncStream (f, { thisThread .randSeed_(345)}); x.reset; 10.do({ [f.next, x.next].postln }); x.reset; 10.do({ [f.next, x.next].postln }); ) Routine(nextFunction, stacksize) In a FuncStream, ...
-
... random number generator. See also randomSeed . ( var a = Date.seed; thisThread.randSeed = a; 20.do { [1, 0].choose.post }; "".postln; thisThread.randSeed = a; 25.do { [1, 0].choose.post }; "".postln; ) ⧉ ✔ Inherited class methods Instance ...
-
... 0, 400.0) } ! 3; var c = { rrand(8000.0, 10000.0).round(10) } ! 3; //thisThread.randSeed = Date.seed; w = Window("lissajous", Rect(128, 64, width, height), false) .front; u = Canvas3D(w, Rect(0, 0, width, height)) .background_(Color.black) ...