diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-18 20:56:30 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-18 20:56:30 +0200 |
commit | b98712ff5b5853b4307032a6e6279ba74bc24c39 (patch) | |
tree | 15b9e7543e0a6ec47d1a6613b57f651196ac7d6f | |
parent | e0a83a758e458b56d55a0e0beceb90129fc02354 (diff) |
amend e0a83a75 RouteDialog + script details
-rw-r--r-- | gtk2_ardour/add_route_dialog.cc | 6 | ||||
-rw-r--r-- | scripts/_route_template_example.lua | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc index b743fbb15b..433cd6e436 100644 --- a/gtk2_ardour/add_route_dialog.cc +++ b/gtk2_ardour/add_route_dialog.cc @@ -337,11 +337,15 @@ AddRouteDialog::trk_template_row_selected () case ARDOUR::Normal: mode_combo.set_active_text (_("Normal")); break; +#ifdef XXX_OLD_DESTRUCTIVE_API_XXX case ARDOUR::NonLayered: mode_combo.set_active_text (_("Nn Layered")); break; +#endif case ARDOUR::Destructive: - mode_combo.set_active_text (_("Tape")); + if (!ARDOUR::Profile->get_mixbus ()) { + mode_combo.set_active_text (_("Tape")); + } break; } } 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 |