diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-20 00:01:36 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-20 00:02:27 +0100 |
commit | c509c9482448ce2342bb64c11c81ebf762439cd8 (patch) | |
tree | aa2758268240bd59c8a5607fc4eb61357533de06 | |
parent | 8d557dd56ad65041351a109650006e20d7a94d76 (diff) |
Update scripts to new request_locate() API
-rw-r--r-- | scripts/_split_benchmark.lua | 2 | ||||
-rw-r--r-- | scripts/jump_to_marker.lua | 2 | ||||
-rw-r--r-- | scripts/tomsloop.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/_split_benchmark.lua b/scripts/_split_benchmark.lua index 6e0ee369d4..6ab60e44bc 100644 --- a/scripts/_split_benchmark.lua +++ b/scripts/_split_benchmark.lua @@ -48,7 +48,7 @@ function factory (params) return function () end local t_end = ARDOUR.LuaAPI.monotonic_time () - Session:request_locate((playhead + step * n_steps), false, 5) + Session:request_locate((playhead + step * n_steps), ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI) print (count_regions (), (t_end - t_start) / 1000 / n_steps) collectgarbage (); ARDOUR.LuaAPI.usleep(500000) diff --git a/scripts/jump_to_marker.lua b/scripts/jump_to_marker.lua index c39c7f215f..ea92020c83 100644 --- a/scripts/jump_to_marker.lua +++ b/scripts/jump_to_marker.lua @@ -27,7 +27,7 @@ function factory () return function () for l in Session:locations():list():iter() do if l:is_mark() and string.find (l:name(), "^" .. rv['marker'] .. ".*$") then - Session:request_locate (l:start()) + Session:request_locate (l:start (), ARDOUR.LocateTransportDisposition.RollIfAppropriate, ARDOUR.TransportRequestSource.TRS_UI) if keep then goto restart end return end diff --git a/scripts/tomsloop.lua b/scripts/tomsloop.lua index 420eb5ae1e..927586604f 100644 --- a/scripts/tomsloop.lua +++ b/scripts/tomsloop.lua @@ -259,7 +259,7 @@ function factory (params) return function () --advance playhead so it's just after the newly added regions if n_regions_created > 0 then - Session:request_locate((playhead + loop:length() * n_paste),false,5) --TRS_UI + Session:request_locate (0, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI) end -- all done, commit the combined Undo Operation |