-
... ainAmplitude = alpha color of ovals // Rendering may take a few seconds ... var routine; var num = 51; var x = 0, y = 0; var txt; txt = "Grains" ; n = NB .new( "granular" , 600, 470); n.publishCode( "fontsize" .cmd(24), "text" .cmd(txt, 10, ...
-
... .softVol_(sl.value, 0.05) }); // safer EZSlider (w, 340@30, \knowLastV , \amp , Routine { |sl| var newVal, lastVal; loop { newVal = sl.value; Ndef ( \test ).softVol_(sl.value, 0.05, lastVal: lastVal); lastVal = newVal; \dummy .yield; } }); ...
-
... cture + ```0_globals``` -- tools and utilities * server config * sample loading routine * network config * setting up master FX * variables to find/open all files easily - q.globalsDir = thisProcess.nowExecutingPath.dirname; - q.topDir = q. ...
-
... 1, strategy = \atpeak| var segments = env.segment(numseg, crossfade, strategy); Routine{ segments.do{|thisseg, index| var envelop = thisseg[0]; var waittime = thisseg[1]; {SinOsc.ar(freq: exprand(200, 800), mul: envelop.kr(doneAction: 2)) ! ...
-
... b.prepareForPlay(s); // play one grain b.spawn(atTime: 0.1); // play 100 grains Routine({ 1.0.wait; 100.do({ b.spawn(atTime: 0.1); 0.25.wait }) }).play(SystemClock) ) ⧉ ✔ Note that there is a Patch method .respawn which is different. Events ...
-
... .signal; // allow others access again }; // e.g. set the values to integers u = Routine { inf .do { |i| useAndModify.value([100, 200, 300], "thread 1>" ); rrand(1, 3).wait; } }; // e.g. set the values to floats k = Routine { 0.5.wait; inf . ...
-
... erEnd.position.y)); }; Pen.stroke; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(App ...
-
... erEnd.position.y)); }; Pen.stroke; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(App ...
-
... db = Debouncer({ "Debouncer immediate fired".postln; }, 0.5, immediate: true); Routine({ db.trigger; 0.1.wait; db.trigger; 0.1.wait; db.trigger; // should fire only once }).play; ) ( var db = Debouncer({ "Debouncer reset - should not fire" ...
-
... nil, rings], // specs i // input ); Out.ar(out, Pan2.ar(z*e, pan)); }).add; r = Routine{ var sustain = 8, transition = 3, overlap = 4; var period = transition * 2 + sustain / overlap; 0.5.wait; // wait for the synthdef to be sent to the ser ...