-
... lTime + ps.first[domain].abs //}); step = totalTime / divisions.asFloat; feed = Routine({ // arg t; var xfrac,after; ps.do({ arg p,i; if(t == p[domain], { p[value].yield }); while({ p[domain] > t },{ if(i > 0,{ xfrac = (t - ps[i-1][domain]) ...
-
... item in nodes, whether playing or not strictCycRout.isNil.if({ strictCycRout = Routine.new({ nodes.do({ arg n; n.yield }); }); }); ^strictCycRout.next } cycle { // returns next non-playing item in nodes // if all nodes playing, returns ear ...
-
... Path, timeStamp = true, hFormat, sFormat, updateGUI = true; var initSched, tmp; Routine.run({ server.serverRunning.if({ isPlaying.not.if({ isPlaying = true; hasGUI.if({ updateGUI.if({ {gui.startButton.value_(1)}.defer; }) }); timer.play; th ...
-
... objects var formant, createFormant; var setupOscResponders, oscResponders; var routineGui; //--gui var ampHiElement= SGUIelement(); var ampHiSpec= ControlSpec(0, 1, 3, 0, defaultAmplitudes[0]); var ampLoElement= SGUIelement(); var ampLoSpe ...
-
... orm.class.asSymbol === 'LinuxPlatform' //} ) { //{ 0.1.wait; ms.boot(10) }.fork Routine({ 0.1.wait; ms.servers.do{ |server| msWaitTime.wait; server.boot; } }).play } { ms.servers.do(_.boot); }; }; }); } quit { if( masterServer.notNil ) { ma ...
-
... .octave) +idx).midicps, \amp, val * 0.015]); }; }, { (q.synths[idx].notNil).if{ Routine{ s.sync; q.synths[idx].release; q.synths[idx] = nil; }.play }; }) }; //m.padConAction = nil; m.padConAction = {|idx, val, time| q.synths[idx].notNil.if{ ...
-
... nctions and objects var prefDict, tmp; var setupCCResponders, ccResponders; var routineGui; var devices= List.new; var version; //nanokontrol v1 or v2 var ccMappings= ( v1: ( //nanokontrol v1 (9 sliders and 9 knobs) \sliders: #[2, 3, 4, 5, ...
-
... = WsSlider.new(a, Rect(0.3, 0.3, 0.1, 0.4)); a = NetAddr("localhost", 62327); ( Routine.run({ 1000.do({ a.sendMsg('127.0.0.1:52085', '{"command":"update", "value":"' ++ 1.0.rand.asSymbol ++ '", "id":"0"}'); a.sendMsg('127.0.0.1:52085', '{"c ...
-
... ) { server.record(path, bus, channels); ("Recording started: " ++ path).postln; Routine.new({ this.prBlips; // 4 blips x 1 sec each, captured in recording }).play; } { server.record(path, bus, channels); ("Recording started: " ++ path).post ...
-
... r some reason for the buffer to load correctly, it needs to be in // a separate routine from the routine below it, so sync'd with bufLoadCond fork({ var msg; test = PathName(soundfilePath).isFile; if(test, { sf = SoundFile.new; if(sf.openRe ...