blob: 7e85cd545160a7cf4c0af3db2c51b482a840a41b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
ardour { ["type"] = "Snippet", name = "Tempo Map Dump" }
function factory () return function ()
local tm = Session:tempo_map ()
local ts = tm:tempo_section_at_sample (0)
while true do
print ("TS @", ts:sample(), " | ", ts:to_tempo():note_types_per_minute (), "..", ts:to_tempo():end_note_types_per_minute (), "bpm")
ts = tm:next_tempo_section (ts)
if not ts then break end
end
end end
|