-
... r process ~master = ConductorClock(~addrBook); ~slave1.sched(1, {\foo.postln}); SystemClock.sched(1, {\bar.postln}); a = Pbind(\degree, Pseq((1..4), inf)).play(~slave1, quant: 1); b = Pbind(\degree, Pseq((5..8), inf)).play(~slave2, quant: 1 ...
-
... ; 0.wait; inf.do{("waiting"++time+"s").postln; time = time+1; 0.1.wait;} }.fork(SystemClock); pipe = Pipe(command, "r"); line = pipe.getLine; //"Pipe here".postln; // get the first line while({line.notNil}, {line.postln; line = pipe.getLine ...
-
... 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 ...
-
... get the current pos when the update task is not running startedAt = [ startPos, SystemClock.seconds ]; //this is for prepareWaitAndStart preparePos = if(needsPrepare){ preparePos.min(startPos) }{ startPos }; deltaToStart = startPos - prepar ...
-
... it doesn't need a deferred function to get or set its value when called from a SystemClock thread or OSC/MIDI responder. And when the action is called (via valueAction or doAction) it is done immediately instead of with the AppClock delay ...
-
... ng new clock (%, %) ... in % seconds\n" .postf(tempo, beats, dt.round(0.0001)); SystemClock.sched(dt, { setClockAction.(TempoClock.default); "new clock is running.".postln; nil }); } { "Synchronization failed. Please try again.".warn; } }); ...
-
... }; } { "Directory '%' is not empty; not recording".format(path).warn; }; }.fork(SystemClock); } => Func(\syncRecord); { MixerChannel.servers.do { |mixers| mixers.do { |mixer| if(mixer.isRecording) { mixer.stopRecord }; }; }; } => Func(\stop ...
-
... nth.isPlaying,{ bundle.add(synth.releaseMsg(releaseTime)); bundle.addFunction({ SystemClock.sched(releaseTime+0.1,{ this.stop; nil; }) }); },{ this.stopToBundle(bundle) }) } free { arg atTime; if([\isFreed,\isFreeing].includes(status).not,{ ...
-
... th.isPlaying, { bundle.add(synth.releaseMsg(releaseTime)); bundle.addFunction({ SystemClock.sched(releaseTime+0.1, { this.stop; nil; }) }); }, { this.stopToBundle(bundle) }) } free { arg atTime; if([\isFreed, \isFreeing].includes(status).no ...
-
... esetclock should be defined above and killed on win.close pos = 0; resetclock = SystemClock.sched(soundDur*pitch.reciprocal, { pos = 0; { sndfileview.timeCursorPosition_(0); }.defer; timeCursorTask.reset; timeCursorTask.stop; nil}); inf.do( ...