-
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 ...
-
//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 ...
-
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 ...
-
BarMap { // a map to convert beats to bar numbers over a time line // signatures are notated as arrays: [3,4] means a signature of 3/4 // events: a sorted array with elements [ num, denom, bar, beat, numBars ] // the last two items of the a ...
-
BarMap { // a map to convert beats to bar numbers over a time line // signatures are notated as arrays: [3,4] means a signature of 3/4 // events: a sorted array with elements [ num, denom, bar, beat, numBars ] // the last two items of the a ...