1 ardour { ["type"] = "Snippet", name = "Tempo Map Dump" }
3 function factory () return function ()
5 local tm = Session:tempo_map ()
6 local ts = tm:tempo_section_at_sample (0)
9 print ("TS @", ts:sample(), " | ", ts:to_tempo():note_types_per_minute (), "..", ts:to_tempo():end_note_types_per_minute (), "bpm")
10 ts = tm:next_tempo_section (ts)
11 if not ts then break end