From 1d5be408019c5f714fd53ca3fee2907091d3845f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 20 Feb 2020 19:10:28 +0100 Subject: [PATCH] Fix copy/edit in c509c948244 --- scripts/tomsloop.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tomsloop.lua b/scripts/tomsloop.lua index 927586604f..d397ab9e60 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 (0, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI) + Session:request_locate (playhead + loop:length() * n_paste, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI) end -- all done, commit the combined Undo Operation