13
0
livetrax/scripts/_toggle_monitor_section.lua

13 lines
344 B
Lua

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