summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/_route_template_example.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/_route_template_example.lua b/scripts/_route_template_example.lua
index 0f460de25c..b7dacec6c9 100644
--- a/scripts/_route_template_example.lua
+++ b/scripts/_route_template_example.lua
@@ -21,10 +21,8 @@ function route_setup ()
-- these keys just need to be set (to something other than nil)
['insert_at'] = ARDOUR.PresentationInfo.max_order,
['group'] = false,
- --[[
['track_mode'] = ARDOUR.TrackMode.Normal,
['strict_io'] = true,
- --]]
}
end
@@ -46,7 +44,15 @@ function factory (params) return function ()
local channels = p["channels"] or 1
local insert_at = p["insert_at"] or ARDOUR.PresentationInfo.max_order;
local group = p["group"] or nil
+ local mode = p["track_mode"] or ARDOUR.TrackMode.Normal
+ local strict_io = p["strict_io"] or false
- Session:new_audio_track (channels, channels, group, how_many, name, insert_at, ARDOUR.TrackMode.Normal)
+ local tl = Session:new_audio_track (channels, channels, group, how_many, name, insert_at, mode)
+
+ if strict_io then
+ for t in tl:iter() do
+ t:set_strict_io (true)
+ end
+ end
end end