diff options
Diffstat (limited to 'share/scripts/_tempo_map_dump.lua')
-rw-r--r-- | share/scripts/_tempo_map_dump.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/share/scripts/_tempo_map_dump.lua b/share/scripts/_tempo_map_dump.lua new file mode 100644 index 0000000000..7e85cd5451 --- /dev/null +++ b/share/scripts/_tempo_map_dump.lua @@ -0,0 +1,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 |