diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-20 22:24:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-20 22:24:08 +0200 |
commit | 656cd9c8a735e4c2bceae5ad5094ca2cea302539 (patch) | |
tree | 20e8e679d3e61ebfb46a2aa0869f278a01fee275 /share/scripts | |
parent | 696096fcbda039b598952308abc1a1354bc5277d (diff) |
Fix Lua script auto-connect new tracks
Since c16ab3a24824 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.
Diffstat (limited to 'share/scripts')
-rw-r--r-- | share/scripts/_route_template_generic_audio.lua | 2 | ||||
-rw-r--r-- | share/scripts/_stereo_to_mono.lua | 2 | ||||
-rw-r--r-- | share/scripts/create_drum_tracks.lua | 2 | ||||
-rw-r--r-- | share/scripts/session_template_record.lua | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/share/scripts/_route_template_generic_audio.lua b/share/scripts/_route_template_generic_audio.lua index 7dabce8aef..531d15959c 100644 --- a/share/scripts/_route_template_generic_audio.lua +++ b/share/scripts/_route_template_generic_audio.lua @@ -66,7 +66,7 @@ function factory (p) chan_out = channels; end - local tl = Session:new_audio_track (channels, chan_out, group, how_many, name, insert_at, mode) + local tl = Session:new_audio_track (channels, chan_out, group, how_many, name, insert_at, mode, true) if strict_io then for t in tl:iter() do diff --git a/share/scripts/_stereo_to_mono.lua b/share/scripts/_stereo_to_mono.lua index 81fa0316a7..20bfb7c5b2 100644 --- a/share/scripts/_stereo_to_mono.lua +++ b/share/scripts/_stereo_to_mono.lua @@ -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 diff --git a/share/scripts/create_drum_tracks.lua b/share/scripts/create_drum_tracks.lua index 0f16f87a70..982cf2dd07 100644 --- a/share/scripts/create_drum_tracks.lua +++ b/share/scripts/create_drum_tracks.lua @@ -23,7 +23,7 @@ function factory () return function () while names[i] do
local tl = Session:new_audio_track (1, 2, nil, 1, names[i],
ARDOUR.PresentationInfo.max_order,
- ARDOUR.TrackMode.Normal)
+ ARDOUR.TrackMode.Normal, true)
for track in tl:iter () do
track:presentation_info_ptr ():set_color (color)
diff --git a/share/scripts/session_template_record.lua b/share/scripts/session_template_record.lua index 9656fd1473..0698c33187 100644 --- a/share/scripts/session_template_record.lua +++ b/share/scripts/session_template_record.lua @@ -48,7 +48,7 @@ function factory () return function () end -- create tracks - local tl = Session:new_audio_track (1, 2, nil, rv['tracks'], "", ARDOUR.PresentationInfo.max_order, ARDOUR.TrackMode.Normal) + local tl = Session:new_audio_track (1, 2, nil, rv['tracks'], "", ARDOUR.PresentationInfo.max_order, ARDOUR.TrackMode.Normal, true) -- and optionally record-arm them if rv['recarm'] then for track in tl:iter() do |