Fix Lua script auto-connect new tracks

Since c16ab3a248 Session::new_audio_track has an optional parameter
to auto-connect inputs. Lua scripts don't have a default parameter,
so bool input_auto_connect was assumed false and inputs left
unconnected.
This commit is contained in:
Robin Gareus 2020-04-20 22:24:08 +02:00
parent 696096fcbd
commit 656cd9c8a7
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ function factory (params) return function ()
if channels ~= 2 then goto next end
-- create 2 new tracks (using the name of the original track)(
local newtracks = Session:new_audio_track (2, 2, nil, 2, t:name(), ARDOUR.PresentationInfo.max_order, ARDOUR.TrackMode.Normal)
local newtracks = Session:new_audio_track (2, 2, nil, 2, t:name(), ARDOUR.PresentationInfo.max_order, ARDOUR.TrackMode.Normal, true)
assert (newtracks:size() == 2)
for r in playlist:region_list ():iter () do