-
... ; j = JITView(123); // now type "x = x + 1" // -> 2 // 2. Window resize by code loops when userview with drawfunc is present. m = MView(123); m.drawFunc.disable(\all); m.parent.bounds_(Rect(100, 100, 150, 24)); // crash m.parent.bounds_(m.p ...
-
... .ar(0, 2); CombN .ar(in, 0.2, 0.2, 3, 1, in); }.play(addAction: \addToTail ); { loop({ orc.use({ // set values in the environment ~freq = exprand(80, 600); ~amp = 0.1; ~pan = 1.0.rand2; // call a randomly chosen instrument function // with ...
-
... * \amp.kr(1), \pan.ar(0) ); Out.ar( 0, snd ); }).add; rout = Routine { loop { freq.do( { |f| Synth(\grain, [\freq, f, \amp, volume/freq.size, \env, env, \pan, pan.asFloat.rand] ) }); lifetime.yield; }; }.play(); win = W ...
-
... { |str| fork { var m = str.iter.rewriteString(r, level); var b; Char .nl.post; loop { b = m.next; if(a.notNil and: b.isNil) { "\n" .post }; (b ? "" ).post; if(b.isNil) { nil .yield }; Synth .grain( \p , [ \freq , b.ascii - 97 * 200 + 300]) ...
-
... trolBusHandlers.put(orbitIndex, Dictionary.new); }); task = Task { //0.05.wait; loop { controlBusses[busId].get({ |value | if (orbits.at(orbitIndex).get(param) != value, { orbits.at(orbitIndex).set(param, value); if (shallUIBeUpdated == 1.0 ...
-
... l methods behave in the same way (in order to allow data log and avoid infinite loopback): // 1. user call them from outside (with the default flag internal=true) // 2. the message goes to the net and is automatically picked up for the OSCd ...
-
... losed, { userview.refresh }); }.defer; }); rate.reciprocal.wait; // framerate }.loop; }).start; }.defer(0.1); // allow the creation of an fftbuf before starting } stopruntask { running = false; runtask.stop; try{fftSynth.free }; } inbus_ {a ...
-
... on; // both numbers must have the same sign. Test them multiple times with a do loop: 20.do({ 5.rand.postln; }); // evenly distributed 20.do({ 1.0.linrand.postln; }); // probability decreases linearly from 0 to 1.0 20.do({ 5.0.rand2.postln; ...
-
... panRange: [-1.0, 1.0] ) ); Tdef(\cloud0, { |e| loop { s.sendBundle(s.latency, [ "/s_new", e.synName ? \bufGab, -1, 0, 0, \rate, q.dirSwitch*(exprand(e.current.rateRange[0], e.curr ...
-
... ncrets"; t = TextView(bounds: Rect(300, 400)); t.string = text; t.front; fork { loop { 2.0.rand.wait; defer { t.setFont(Font("Times", rrand(12, 48)), rand(text.size - 1), rrand(3, 17)); t.setStringColor(Color.rand, rand(text.size - 1), rran ...