libardour: change API of Session::request_locate() to include "force" argument (script edition)
This commit is contained in:
parent
e2e6274956
commit
fd879ca45d
|
@ -48,7 +48,7 @@ function factory (params) return function ()
|
||||||
end
|
end
|
||||||
local t_end = ARDOUR.LuaAPI.monotonic_time ()
|
local t_end = ARDOUR.LuaAPI.monotonic_time ()
|
||||||
|
|
||||||
Session:request_locate((playhead + step * n_steps), ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
|
Session:request_locate((playhead + step * n_steps), false, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
|
||||||
print (count_regions (), (t_end - t_start) / 1000 / n_steps)
|
print (count_regions (), (t_end - t_start) / 1000 / n_steps)
|
||||||
collectgarbage ();
|
collectgarbage ();
|
||||||
ARDOUR.LuaAPI.usleep(500000)
|
ARDOUR.LuaAPI.usleep(500000)
|
||||||
|
|
|
@ -27,7 +27,7 @@ function factory () return function ()
|
||||||
|
|
||||||
for l in Session:locations():list():iter() do
|
for l in Session:locations():list():iter() do
|
||||||
if l:is_mark() and string.find (l:name(), "^" .. rv['marker'] .. ".*$") then
|
if l:is_mark() and string.find (l:name(), "^" .. rv['marker'] .. ".*$") then
|
||||||
Session:request_locate (l:start (), ARDOUR.LocateTransportDisposition.RollIfAppropriate, ARDOUR.TransportRequestSource.TRS_UI)
|
Session:request_locate (l:start (), false, ARDOUR.LocateTransportDisposition.RollIfAppropriate, ARDOUR.TransportRequestSource.TRS_UI)
|
||||||
if keep then goto restart end
|
if keep then goto restart end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,7 +43,7 @@ function factory ()
|
||||||
if (pos + n_samples >= m) then
|
if (pos + n_samples >= m) then
|
||||||
-- asking to locate to "m" ensures that playback continues at "m"
|
-- asking to locate to "m" ensures that playback continues at "m"
|
||||||
-- and the same marker will not be taken into account.
|
-- and the same marker will not be taken into account.
|
||||||
Session:request_locate (m, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_Engine)
|
Session:request_locate (m, false, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_Engine)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -258,7 +258,7 @@ function factory (params) return function ()
|
||||||
|
|
||||||
--advance playhead so it's just after the newly added regions
|
--advance playhead so it's just after the newly added regions
|
||||||
if n_regions_created > 0 then
|
if n_regions_created > 0 then
|
||||||
Session:request_locate (playhead + loop:length() * n_paste, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
|
Session:request_locate (playhead + loop:length() * n_paste, false, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- all done, commit the combined Undo Operation
|
-- all done, commit the combined Undo Operation
|
||||||
|
|
Loading…
Reference in New Issue