13
0

Update scripts for new bonuce_range API

This commit is contained in:
Robin Gareus 2023-10-16 20:59:47 +02:00
parent 88365ae149
commit 9345f824f5
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ function factory (params) return function ()
playlist:to_stateful ():clear_changes () playlist:to_stateful ():clear_changes ()
-- bounce the region with processing -- bounce the region with processing
local region = track:bounce_range (r:position ():samples(), (r:position() + r:length ()):samples(), ARDOUR.InterThreadInfo (), track:main_outs (), false, ""); local region = track:bounce_range (r:position ():samples(), (r:position() + r:length ()):samples(), ARDOUR.InterThreadInfo (), track:main_outs (), false, "", false);
-- remove old region.. -- remove old region..
playlist:remove_region (r); playlist:remove_region (r);

View File

@ -242,7 +242,7 @@ function factory (params) return function ()
playlist:to_stateful ():clear_changes () playlist:to_stateful ():clear_changes ()
-- do the actual work -- do the actual work
local region = track:bounce_range (loop:start ():samples(), loop:_end ():samples(), itt, proc, false, "") local region = track:bounce_range (loop:start ():samples(), loop:_end ():samples(), itt, proc, false, "", false)
playlist:add_region (region, Temporal.timepos_t (playhead), n_paste, false) playlist:add_region (region, Temporal.timepos_t (playhead), n_paste, false)
n_regions_created = n_regions_created + 1 n_regions_created = n_regions_created + 1