13
0

Add Lua bindings to change mute-points

This commit is contained in:
Robin Gareus 2022-12-12 10:43:59 +01:00
parent f4827b470b
commit d1ef9947a2
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -71,6 +71,7 @@
#include "ardour/mixer_scene.h"
#include "ardour/monitor_control.h"
#include "ardour/monitor_processor.h"
#include "ardour/mute_master.h"
#include "ardour/panner_shell.h"
#include "ardour/phase_control.h"
#include "ardour/playlist.h"
@ -2014,6 +2015,8 @@ LuaBindings::common (lua_State* L)
.deriveWSPtrClass <MuteControl, SlavableAutomationControl> ("MuteControl")
.addFunction ("muted", &MuteControl::muted)
.addFunction ("muted_by_self", &MuteControl::muted_by_self)
.addFunction ("mute_points", &MuteControl::mute_points)
.addFunction ("set_mute_points", &MuteControl::set_mute_points)
.endClass ()
.deriveWSPtrClass <SoloIsolateControl, SlavableAutomationControl> ("SoloIsolateControl")
@ -2357,6 +2360,13 @@ LuaBindings::common (lua_State* L)
.addConst ("MonitoringCue", ARDOUR::MonitorState(MonitoringCue))
.endNamespace ()
.beginNamespace ("MutePoint")
.addConst ("PreFader", ARDOUR::MuteMaster::MutePoint(MuteMaster::PreFader))
.addConst ("PostFader", ARDOUR::MuteMaster::MutePoint(MuteMaster::PostFader))
.addConst ("Listen", ARDOUR::MuteMaster::MutePoint(MuteMaster::Listen))
.addConst ("Main", ARDOUR::MuteMaster::MutePoint(MuteMaster::Main))
.endNamespace ()
.beginNamespace ("NoteMode")
.addConst ("Sustained", ARDOUR::NoteMode(Sustained))
.addConst ("Percussive", ARDOUR::NoteMode(Percussive))