-
BeatSched { classvar <global; var clock,<tempo,<tempoClock; var epoch=0.0,beatEpoch=0.0; var nextTask; var pq,nextAbsTime,nextAbsFunc,nextAbsList; *new { arg clock,tempo,tempoClock; ^super.newCopyArgs(clock ? SystemClock, tempo = tempo ?? { ...
-
BeatSched { classvar <global; var clock, <tempo, <tempoClock; var epoch=0.0, beatEpoch=0.0; var nextTask; var pq, nextAbsTime, nextAbsFunc, nextAbsList; *new { arg clock, tempo, tempoClock; ^super.newCopyArgs(clock ? SystemClock, tempo = te ...
-
... Forwarding to the default instance stop play sched schedAbs clear tempo etempo beats beats2secs secs2beats nextTimeOnGrid timeToNextBeat setTempoAtBeat setTempoAtSec setMeterAtBeat beatsPerBar baseBarBeat baseBar playNextBar beatDur elapse ...
-
... oClock is a scheduler like SystemClock, but it schedules relative to a tempo in beats per second. *new(tempo, beats, seconds, queueSize) creates a new TempoClock scheduler with the given tempo and starting times. If not supplied, tempo defa ...
-
simple timeline for scheduling start and stop of patterns at specific beats (and an experimental extension with absolute time scheduling) // // Did you ever wonder how to easily schedule starting/stopping patterns at specific times // ...
-
//floor ( t = TempoClock.default; q = 2; t.beats.postln; t.schedAbs(t.beats.floor + q, { t.beats.postln; "".postln; nil }); ) //or ceil? ( t = TempoClock.default; q = 2; t.beats.postln; t.schedAbs(t.beats.ceil + q, { t.beats.postln; "".post ...
-
... rror("Device not found " + deviceName + portName).throw; }); ^super.newCopyArgs(BeatSched.new(tempoClock:tempoClock),port) } play { var delta,songBeat = 0.0,quantize=4.0; if(isPlaying,{ "MIDIClockOut is already playing".inform; ^this }); sc ...
-
... rror("Device not found " + deviceName + portName).throw; }); ^super.newCopyArgs(BeatSched.new(tempoClock:tempoClock), port) } play { var delta, songBeat = 0.0, quantize=4.0; if(isPlaying, { "MIDIClockOut is already playing".inform; ^this }) ...
-
... his.sendBundle(nil, args); } } RenderAddr : RecordAddr { var <>lifeTime, <threadBeats; *new { arg hostname="127.0.0.1", port=0, lifeTime=60; ^super.new(hostname, port).lifeTime_(lifeTime) } init { super.init; threadBeats = IdentityDictionar ...
-
TempoMap { // a map to convert beats to seconds over a timeline // tempo 1 means: 1 beat is 1 second (60 BPM) // events: a sorted array with elements [ tempo, beat, time ] // the 'time' slot is updated automatically for all events when addi ...