13
0

two new action scripts (no icons yet)

This commit is contained in:
Robin Gareus 2017-03-07 00:32:19 +01:00
parent e1095310a8
commit 7bada83a3f
2 changed files with 43 additions and 0 deletions

View 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

View File

@ -0,0 +1,21 @@
ardour {
["type"] = "EditorAction",
name = "Mute All Tracks",
license = "MIT",
author = "Ardour Team",
description = [[Mute All Tracks in the Session]]
}
function factory () return function ()
local ctrls = ARDOUR.ControlListPtr () -- create a list of controls to change
for r in Session:get_tracks ():iter () do -- iterate over all tracks in the session
ctrls:push_back (r:mute_control()) -- add the track's mute-control to the list of of controls to be changed
end
-- of more than one control is to be changed..
if ctrls:size() > 0 then
-- do it (queue change in realtime-context) set to "1" ; here 'muted'
Session:set_controls (ctrls, 1, PBD.GroupControlDisposition.NoGroup)
end
end end