mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 01:26:31 +01:00
amend e0a83a75 RouteDialog + script details
This commit is contained in:
parent
e0a83a758e
commit
b98712ff5b
2 changed files with 14 additions and 4 deletions
|
|
@ -337,11 +337,15 @@ AddRouteDialog::trk_template_row_selected ()
|
||||||
case ARDOUR::Normal:
|
case ARDOUR::Normal:
|
||||||
mode_combo.set_active_text (_("Normal"));
|
mode_combo.set_active_text (_("Normal"));
|
||||||
break;
|
break;
|
||||||
|
#ifdef XXX_OLD_DESTRUCTIVE_API_XXX
|
||||||
case ARDOUR::NonLayered:
|
case ARDOUR::NonLayered:
|
||||||
mode_combo.set_active_text (_("Nn Layered"));
|
mode_combo.set_active_text (_("Nn Layered"));
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case ARDOUR::Destructive:
|
case ARDOUR::Destructive:
|
||||||
|
if (!ARDOUR::Profile->get_mixbus ()) {
|
||||||
mode_combo.set_active_text (_("Tape"));
|
mode_combo.set_active_text (_("Tape"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,8 @@ function route_setup ()
|
||||||
-- these keys just need to be set (to something other than nil)
|
-- these keys just need to be set (to something other than nil)
|
||||||
['insert_at'] = ARDOUR.PresentationInfo.max_order,
|
['insert_at'] = ARDOUR.PresentationInfo.max_order,
|
||||||
['group'] = false,
|
['group'] = false,
|
||||||
--[[
|
|
||||||
['track_mode'] = ARDOUR.TrackMode.Normal,
|
['track_mode'] = ARDOUR.TrackMode.Normal,
|
||||||
['strict_io'] = true,
|
['strict_io'] = true,
|
||||||
--]]
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -46,7 +44,15 @@ function factory (params) return function ()
|
||||||
local channels = p["channels"] or 1
|
local channels = p["channels"] or 1
|
||||||
local insert_at = p["insert_at"] or ARDOUR.PresentationInfo.max_order;
|
local insert_at = p["insert_at"] or ARDOUR.PresentationInfo.max_order;
|
||||||
local group = p["group"] or nil
|
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
|
end end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue