-
... keep++cache; //sort toschedule into order, and prepare as deltas for sequential SystemClock scheduling toschedule= toschedule.sort({arg a,b; a[0]<b[0]}); //into delta times toschedule.do({arg val,i; if(i<(toschedule.size-1),{ val[0]=(tosche ...
-
... ~schedBundleArray.(lag, offset, server, bndl.messages, latency); }); }; }.fork(SystemClock); if (sendGate) { ~schedBundleArray.( lag, sustain + offset, server, #[[error, -1]] ++ [15 /* \n_set */, ~syn.collect { |n| n.node.nodeID }, \gate, ...
-
... ying = false; isSwitchPlaying = false; helpSynth.otherPHSusePlayers.do(_.free); SystemClock.sched(helpSynth.totalLatency + cleanupDelay, { this.clearBookkeeping; }); helpSynth.free(helpSynth.totalLatency + cleanupDelay) }; CmdPeriod.remove( ...
-
... trols[ \counter ].posD = controls[ \counter ].pos + 0.05; 0.05.wait } }) .play( SystemClock ); }; controls = ( counterText: StaticText( w, 60@20 ).string_( "time" ).align_( \right ), counter: SMPTEBox( w, 120@20 ).fontSize_( 12 ).fontColor_ ...
-
... probably be on a different machine or process ~slave1.sched(1, {\foo.postln}); SystemClock.sched(1, {\bar.postln}); Pbind(\degree, Pseq((1..4), inf)).play(~slave1, quant: 1); Pbind(\degree, Pseq((5..8), inf)).play(~slave2, quant: 1); ~mast ...
-
... Task = Task({ var pos; pos = 0; if(loop == false, { // not looping resetclock = SystemClock.sched(seltime, { {playButt.value_(0)}.defer; if(synthRunFlag, {synth.free}); synthRunFlag=false; {sndfileview.timeCursorPosition_(start)}.defer; tim ...
-
... dSpawn); }); } didSpawn { super.didSpawn; this.startTask; } startTask { clock = SystemClock; clock.sched((delta - latency).max(0.0),spawnTask); } isPlaying { ^spawnTask.isPlaying } didStop { super.didStop; spawnTask.stop; spawnTask = nil; } ...
-
... dSpawn); }); } didSpawn { super.didSpawn; this.startTask; } startTask { clock = SystemClock; clock.sched((delta - latency).max(0.0), spawnTask); } isPlaying { ^spawnTask.isPlaying } didStop { super.didStop; spawnTask.stop; spawnTask = nil; ...
-
... (name, end, true, false); nil.yield // stop }); // previously used routine.play(SystemClock) // but this was bad when controlLine was called from another clock // this is the proper way: schedule for 'now' on sysclock SystemClock.sched(0, l ...
-
... (name, end, true, false); nil.yield // stop }); // previously used routine.play(SystemClock) // but this was bad when controlLine was called from another clock // this is the proper way: schedule for 'now' on sysclock SystemClock.sched(0, l ...