01-17-2024, 10:02 PM
Given the following snippet of code (written for ardour but asking here as well):
Is there any way to select the newly added region (in the script, of course) so that I can rename it?
Code:
-- bounce selected region with processing
local region = track:bounce_range (r:position ():samples(), (r:position() + r:length ()):samples(), ARDOUR.InterThreadInfo (), track:main_outs (), false, "", false);
-- Add the newly bounced one
playlist:add_region (region, r:position (), 1, false, 0, 0, false)
Is there any way to select the newly added region (in the script, of course) so that I can rename it?