diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-23 20:48:02 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-23 20:48:02 +0100 |
commit | 180843f9bd28b191c7404245ba0a121107992511 (patch) | |
tree | c60312dc09f76c2f55ba2383245c427e15c38dea /share/scripts/_toggle_monitor_section.lua | |
parent | bf649cd68ad46c34a656700aa6cb89416d648c64 (diff) |
Also move Lua scripts to share subfolder
Diffstat (limited to 'share/scripts/_toggle_monitor_section.lua')
-rw-r--r-- | share/scripts/_toggle_monitor_section.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/share/scripts/_toggle_monitor_section.lua b/share/scripts/_toggle_monitor_section.lua new file mode 100644 index 0000000000..e097a94a32 --- /dev/null +++ b/share/scripts/_toggle_monitor_section.lua @@ -0,0 +1,10 @@ +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 |