First round of Lua script API updates

This commit is contained in:
Robin Gareus 2022-09-27 05:06:13 +02:00
parent 395bf4a650
commit 30a92894fc
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
8 changed files with 34 additions and 31 deletions

View file

@ -39,7 +39,7 @@ function factory (params) return function ()
playlist:to_stateful ():clear_changes ()
-- bounce the region with processing
local region = track:bounce_range (r:position (), r:position() + r:length (), 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, "");
-- remove old region..
playlist:remove_region (r);