lua/superclocks: use accessor rather than static var
This commit is contained in:
parent
e3b66825eb
commit
bd32243ec7
@ -3,7 +3,7 @@ ardour { ["type"] = "Snippet", name = "tempo map examples" }
|
||||
function factory () return function ()
|
||||
|
||||
-- query BPM at 00:00:10:00
|
||||
local tp = Temporal.timepos_t.from_superclock (Temporal.superclock_ticks_per_second * Session:nominal_sample_rate () * 10)
|
||||
local tp = Temporal.timepos_t.from_superclock (Temporal.superclock_ticks_per_second () * Session:nominal_sample_rate () * 10)
|
||||
local tm = Temporal.TempoMap.use ()
|
||||
print (tm:tempo_at (tp):quarter_notes_per_minute ())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user