-
... ar algaPatterns = algaPatternPlayer.algaPatterns; var beats = algaPatternPlayer.clock.beats; //scheduledStepActionsPre algaPatternPlayer.advanceAndConsumeScheduledStepActions(false); //Advance entries and results' pointers if(algaPatternPla ...
-
... wo different machines, it is necessary to know the difference between their two clocks and compensate for this in the time argument of sendMsg or sendBundle. Here is one method of finding this difference. These classes must be compiled i ...
-
... l Public License full notice in file BBCutLibrary.help //represents an External Clock ticking away, base class, wrapper for a TempoClock //each provider has an associated Reference with an on flag, which is set to false by the provider //to ...
-
... // total duration = infinite \time, Pfunc { startTime = startTime ? (thisThread.clock.beats.debug("time")) } ), 1, 4) ++ Pfuncn({ thisThread.clock.beats.debug("finish time"); (thisThread.clock.beats - startTime).debug("elapsed"); nil }, 1)) ...
-
... eqs = ~freq; ~amp = ~amp.value; bndl = proxy.controlKeys.envirPairs; thisThread.clock.sched(~lag + ~timingOffset, { // [proxy.dump, bndl].postln; proxy.set( *bndl ); }); }; }; ); } *new{ |proxy,src, key| var pat,res; key = key ?? { proxy.ke ...
-
TempoClockGui : ObjectGui { // displays current status of a tempoclock; updates every beat classvar namewidth = 100, nameheight = 18, numheight = 40, numwidth = 70, height = 50, width = 600, spec; var <w, <name, <namev, <bars, <beats, updat ...
-
... freq.kr(4000)); Out.ar(out, Pan2.ar(sig, \pos.kr(0.0))); }).add; ) ( // setup a clock t = TempoClock.default; t.tempo = 130/60.0; // tdefs to play patterns Tdef(\hh, {|env| inf.do({|i| var level = ScGrids.calculateLevel( instrument: \hihat, ...
-
... stain < inf } }) { if(releaseHolder.notNil) { releaseHolder[proxy] = thisThread.clock.beats + sustain; }; thisThread.clock.sched(sustain, { if(releaseHolder.isNil or: { releaseHolder[proxy] ? 0 <= thisThread.clock.beats }) { proxy.source = ...
-
... initiate different actions. For example, one might simply want to adjust a TempoClock tempo. Or one might want to pause a routine, yield its next events on subsequent clicks, and resume the routine at the new tempo when clicks have stopped. ...
-
... boot({ a = AP({ SinOsc.ar * EnvGen.kr(Env.perc, doneAction:2) }).play }) ) Alga.clock.tempo = 1