mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
Fix Mixer Recall script
Add new Mixbus internal processors to well_known list, and ensure that proc is not nil before invalidation
This commit is contained in:
parent
87626e0bdd
commit
4fffb39258
1 changed files with 14 additions and 3 deletions
|
|
@ -204,7 +204,16 @@ function factory ()
|
||||||
local rt_group = group_by_name(group_name)
|
local rt_group = group_by_name(group_name)
|
||||||
if rt_group then rt_group:add(rt) end
|
if rt_group then rt_group:add(rt) end
|
||||||
|
|
||||||
well_known = {'PRE', 'Trim', 'EQ', 'Comp', 'Fader', 'POST'}
|
well_known = {
|
||||||
|
'PRE',
|
||||||
|
'Trim',
|
||||||
|
'EQ',
|
||||||
|
'Comp',
|
||||||
|
'Fader',
|
||||||
|
'POST',
|
||||||
|
"Input Stage",
|
||||||
|
"Mixbus Limiter"
|
||||||
|
}
|
||||||
protected_instrument = false
|
protected_instrument = false
|
||||||
for k, v in pairs(order) do
|
for k, v in pairs(order) do
|
||||||
local proc = Session:processor_by_id(PBD.ID(1))
|
local proc = Session:processor_by_id(PBD.ID(1))
|
||||||
|
|
@ -220,10 +229,12 @@ function factory ()
|
||||||
for _, control in pairs(well_known) do
|
for _, control in pairs(well_known) do
|
||||||
if name == control then
|
if name == control then
|
||||||
proc = get_processor_by_name(rt, control)
|
proc = get_processor_by_name(rt, control)
|
||||||
|
if proc and not(proc:isnil()) then
|
||||||
invalidate[v] = proc:to_stateful():id():to_s()
|
invalidate[v] = proc:to_stateful():id():to_s()
|
||||||
goto nextproc
|
goto nextproc
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
if not(proc) then goto nextproc end
|
if not(proc) then goto nextproc end
|
||||||
if not(proc:isnil()) then
|
if not(proc:isnil()) then
|
||||||
rt:add_processor_by_index(proc, 0, nil, true)
|
rt:add_processor_by_index(proc, 0, nil, true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue