mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Update mixer Store/Recall to work with new published bus controls
This commit is contained in:
parent
6069c870f8
commit
327cd513d3
2 changed files with 80 additions and 29 deletions
|
|
@ -159,7 +159,8 @@ function factory ()
|
|||
local group = instance["group"]
|
||||
local group_name = instance["group_name"]
|
||||
local name = instance["route_name"]
|
||||
local gc, tc, pc = instance["gain_control"], instance["trim_control"], instance["pan_control"]
|
||||
local gc, tc, pc = instance["gain_control"], instance["trim_control"], instance["pan_control"]
|
||||
local sends = instance["sends"]
|
||||
|
||||
if not(substitution == instance["route_id"]) then
|
||||
print('SUBSTITUTION FOR: ', name, substitution, Session:route_by_id(PBD.ID(substitution)):name())
|
||||
|
|
@ -170,7 +171,29 @@ function factory ()
|
|||
|
||||
local rt = Session:route_by_id(r_id)
|
||||
if rt:isnil() then rt = Session:route_by_name(name) end
|
||||
if rt:isnil() then goto nextline end
|
||||
if rt:isnil() then goto nextline end
|
||||
|
||||
if sends then
|
||||
for i, data in pairs(sends) do
|
||||
i = i-1
|
||||
for j, ctrl in pairs({
|
||||
rt:send_level_controllable(i),
|
||||
rt:send_enable_controllable(i),
|
||||
rt:send_pan_azimuth_controllable(i),
|
||||
rt:send_pan_azimuth_enable_controllable(i),
|
||||
}) do
|
||||
if not(ctrl:isnil()) then
|
||||
local value = data[j]
|
||||
if value then
|
||||
if debug then
|
||||
print("Setting " .. ctrl:name() .. " to value " .. value)
|
||||
end
|
||||
ctrl:set_value(value, PBD.GroupControlDisposition.NoGroup)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local cur_group_id = route_groupid_interrogate(rt)
|
||||
if not(group) and (cur_group_id) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue