Lua Script Example to toggle monitor section

This commit is contained in:
Robin Gareus 2017-08-24 02:56:33 +02:00
parent 08e564dc2e
commit aacb2d7be7

View file

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