Fix automation lookup when rolling backwards
[ardour.git] / scripts / midi_cc_to_automation.lua
index afe5bdd00a261acbdb983ee1034983b6ce5e397d..9a5780e73de1c8e89ef67da99b19518d289fc1cb 100644 (file)
@@ -95,7 +95,7 @@ function factory () return function ()
 
                -- MIDI events are timestamped in "bar-beat" units, we need to convert those
                -- using the tempo-map, relative to the region-start
-               local bfc = ARDOUR.DoubleBeatsFramesConverter (Session:tempo_map (), r:start ())
+               local bfc = ARDOUR.DoubleBeatsSamplesConverter (Session:tempo_map (), r:start ())
 
                -- iterate over CC-events
                for av in ec:list ():events ():iter () do