mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
lua/superclocks: use accessor rather than static var
This commit is contained in:
parent
e3b66825eb
commit
bd32243ec7
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue