mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
First round of Lua script API updates
This commit is contained in:
parent
395bf4a650
commit
30a92894fc
8 changed files with 34 additions and 31 deletions
|
|
@ -242,8 +242,8 @@ function factory (params) return function ()
|
|||
playlist:to_stateful ():clear_changes ()
|
||||
|
||||
-- do the actual work
|
||||
local region = track:bounce_range (loop:start (), loop:_end (), itt, proc, false, "")
|
||||
playlist:add_region (region, playhead, n_paste, false, 0, 0, false)
|
||||
local region = track:bounce_range (loop:start ():samples(), loop:_end ():samples(), itt, proc, false, "")
|
||||
playlist:add_region (region, Temporal.timepos_t (playhead), n_paste, false)
|
||||
|
||||
n_regions_created = n_regions_created + 1
|
||||
|
||||
|
|
@ -258,7 +258,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, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
|
||||
Session:request_locate (playhead + loop:length():samples() * n_paste, false, ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
|
||||
end
|
||||
|
||||
-- all done, commit the combined Undo Operation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue