2017-03-06 18:32:19 -05:00
|
|
|
ardour {
|
|
|
|
["type"] = "EditorAction",
|
|
|
|
name = "Bypass Plugins",
|
|
|
|
license = "MIT",
|
|
|
|
author = "Ardour Team",
|
|
|
|
description = [[Bypass Plugins on selected tracks]]
|
|
|
|
}
|
|
|
|
|
|
|
|
function factory () return function ()
|
|
|
|
local sel = Editor:get_selection ()
|
|
|
|
for r in sel.tracks:routelist ():iter () do
|
|
|
|
local i = 0;
|
|
|
|
while 1 do -- iterate over all plugins/processors
|
|
|
|
local proc = r:nth_plugin (i)
|
|
|
|
if proc:isnil () then
|
|
|
|
break
|
|
|
|
end
|
2020-02-27 22:34:54 -05:00
|
|
|
proc:to_insert():enable (false)
|
2017-03-06 18:32:19 -05:00
|
|
|
i = i + 1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end end
|