mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Also move Lua scripts to share subfolder
This commit is contained in:
parent
bf649cd68a
commit
180843f9bd
129 changed files with 2 additions and 2 deletions
22
share/scripts/bypass_all_plugins.lua
Normal file
22
share/scripts/bypass_all_plugins.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
proc:to_insert():deactivate()
|
||||
i = i + 1
|
||||
end
|
||||
end
|
||||
end end
|
||||
Loading…
Add table
Add a link
Reference in a new issue