-
... el.liveValues = model.spec.map( Array.fill(model.spline.numDimensions - 1, {1.0.rand}) ); model.savePoint; }) }; pointSelector.activeValue = -1; model.initTable.changed }); layout.startRow; ActionButton(layout, "Values @ P", { values.valueA ...
-
... (path, amp, out, group); } initRedLoop {|path, amp, out, group| magic= 999999.9.rand.asSymbol; Server.default.waitForBoot{ sampler= this.prType.new(Server.default); sampler.overlaps= 1; Server.default.sync; sampler.prepareForPlay(magic, pat ...
-
... 20); n.sendMsg('/gyrosc/gyro', 0.1, 0.2, 0.3); n.sendMsg('/gyrosc/button', 1, 2.rand, 0.3); Tdef(\gyrtest, { inf.do { // n.sendMsg('/gyrosc/gyro', 1.0.rand2, 1.0.rand2, 1.0.rand2); // n.sendMsg('/gyrosc/accel', 1.0.rand2, 1.0.rand2, 1.0.ran ...
-
... outlet1, { |out, amp=0.1, sustain=5, freq=5000| var energy = EnvGen.kr(Env.perc(Rand(0.01, 0.02), sustain), doneAction:2); var son; son = Resonz.ar(WhiteNoise.ar(0.5.dup), energy.linlin(1, 0, freq, freq * 0.2), 0.4); Out.ar(out, son * energ ...
-
... at .at to store anything you like. For example: c.at[\exampleVariable] = 10000.rand; // Get the value c.at[\exampleVariable];
-
... ("/n_free", 2002); s.quit; w.close;}) // .states_([["Stop ", Color.black, Color.rand],["Stop ", Color.white, Color.red]]) // .keyDownAction_({arg ... args; args.postln; s.sendMsg("/n_free", 2002); s.quit; w.close;}); // w.onClose_({arg ... ...
-
... nv.perc(attackTime: 0, releaseTime: rel, curve: curve).kr(doneAction: 2); mod = Rand(modLo, modHi); snd = PMOsc.ar( carfreq: freq, modfreq: mod * freq, pmindex: env * tone, mul: env * amp ); snd = HPF.ar(snd, freq / 2); snd = Mix.ar(snd) * ...
-
... ble, { if( f.environment[ \seed ].isNil ) { f.environment[ \seed ] = 1569325056.rand; }; thisThread.randSeed = f.environment[ \seed ]; obj.scramble; }, \nearest, { old = obj.deepCopy.reverse; sorted = Array( old.size ); sorted.add( old.pop ...
-
... "test").front().action_({ |v| v.postln; }).labelText_("Label test").value_(1.0.rand).value.postln; a.value = 0; * SCMSliderView() * * AUTHOR: Marinus Klaassen (2012, 2021Q3) */ SCMSliderView : SCMViewBase { var <spec, <labelText, <value = ...
-
... e saw the first marker of the 0th red cube: b.faceSeen(w, v); //b.faceSeen(w+ 2.rand, v) }}); Tdef ( \simulation ).play; Tdef ( \observation , {loop{ 0.1.wait; "upFace(%) vis(%) states: %\n" .postf(b.upFace, b.visible, b.faceStates); }}); T ...