Add Lua bindings for MIDI channel mode/mask
This commit is contained in:
parent
8d68fb1ac3
commit
6f7188dc49
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user