13
0

Add Lua bindings for MIDI channel mode/mask

This commit is contained in:
Robin Gareus 2022-09-10 04:27:52 +02:00
parent 8d68fb1ac3
commit 6f7188dc49
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1394,6 +1394,14 @@ LuaBindings::common (lua_State* L)
.addFunction ("write_immediate_event", &MidiTrack::write_immediate_event)
.addFunction ("set_input_active", &MidiTrack::set_input_active)
.addFunction ("input_active", &MidiTrack::input_active)
.addFunction ("set_capture_channel_mode", &MidiTrack::set_capture_channel_mode)
.addFunction ("set_playback_channel_mode", &MidiTrack::set_playback_channel_mode)
.addFunction ("set_playback_channel_mask", &MidiTrack::set_playback_channel_mask)
.addFunction ("set_capture_channel_mask", &MidiTrack::set_capture_channel_mask)
.addFunction ("get_playback_channel_mode", &MidiTrack::get_playback_channel_mode)
.addFunction ("get_capture_channel_mode", &MidiTrack::get_capture_channel_mode)
.addFunction ("get_playback_channel_mask", &MidiTrack::get_capture_channel_mode)
.addFunction ("get_capture_channel_mask", &MidiTrack::get_capture_channel_mask)
.endClass ()
.beginWSPtrClass <AudioReadable> ("Readable")
@ -2174,6 +2182,12 @@ LuaBindings::common (lua_State* L)
.addConst ("Percussive", ARDOUR::NoteMode(Percussive))
.endNamespace ()
.beginNamespace ("ChannelMode")
.addConst ("AllChannels", ARDOUR::ChannelMode(AllChannels))
.addConst ("FilterChannels", ARDOUR::ChannelMode(FilterChannels))
.addConst ("ForceChannel", ARDOUR::ChannelMode(ForceChannel))
.endNamespace ()
.beginNamespace ("PortFlags")
.addConst ("IsInput", ARDOUR::PortFlags(IsInput))
.addConst ("IsOutput", ARDOUR::PortFlags(IsOutput))