From bd32243ec7a2a425a336379674511a77a5321d08 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 17 Mar 2022 14:15:53 -0600 Subject: [PATCH] lua/superclocks: use accessor rather than static var --- share/scripts/s_tempo_map.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/scripts/s_tempo_map.lua b/share/scripts/s_tempo_map.lua index b68ddd096a..012065be37 100644 --- a/share/scripts/s_tempo_map.lua +++ b/share/scripts/s_tempo_map.lua @@ -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 ())