mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +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
21
share/scripts/mute_all_tracks.lua
Normal file
21
share/scripts/mute_all_tracks.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue