ardour/share/scripts/_toggle_monitor_section.lua
Robin Gareus 925be49b2d
Remove redundant collectgarbage() calls from scripts
Since 8112d6472e garbage is automatically collected
after running a Lua GUI script.
2020-03-10 23:31:20 +01:00

10 lines
255 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)
end
end end