13
0

lua/superclocks: use accessor rather than static var

This commit is contained in:
Paul Davis 2022-03-17 14:15:53 -06:00
parent e3b66825eb
commit bd32243ec7

View File

@ -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 ())