ardour/scripts/_toggle_monitor_section.lua
2019-03-01 16:46:08 +01:00

10 lines
275 B
Lua

ardour { ["type"] = "Snippet", name = "Toggle Monitor Section" }
function factory () return function ()
if Session:monitor_out():isnil() then
ARDOUR.config():set_use_monitor_bus (true)
else
ARDOUR.config():set_use_monitor_bus (false)
collectgarbage ()
end
end end