Add Lua bindings to inspect MidiTrack::MidiControl
authorRobin Gareus <robin@gareus.org>
Wed, 7 Dec 2016 10:30:40 +0000 (11:30 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 7 Dec 2016 10:30:40 +0000 (11:30 +0100)
libs/ardour/luabindings.cc

index 037369414ff96a61cf5edda6e861e398c63bdae7..4899757188bb7f657a18540d8f62564118b5a991 100644 (file)
@@ -915,6 +915,7 @@ LuaBindings::common (lua_State* L)
 
                .deriveWSPtrClass <Route, Stripable> ("Route")
                .addCast<Track> ("to_track")
+               .addCast<Automatable> ("to_automatable")
                .addFunction ("set_name", &Route::set_name)
                .addFunction ("comment", &Route::comment)
                .addFunction ("active", &Route::active)
@@ -1528,6 +1529,12 @@ LuaBindings::common (lua_State* L)
                .addConst ("RecSafeAutomation", ARDOUR::AutomationType(RecSafeAutomation))
                .addConst ("TrimAutomation", ARDOUR::AutomationType(TrimAutomation))
                .addConst ("PhaseAutomation", ARDOUR::AutomationType(PhaseAutomation))
+               .addConst ("MidiCCAutomation", ARDOUR::AutomationType(MidiCCAutomation))
+               .addConst ("MidiPgmChangeAutomation", ARDOUR::AutomationType(MidiPgmChangeAutomation))
+               .addConst ("MidiPitchBenderAutomation", ARDOUR::AutomationType(MidiPitchBenderAutomation))
+               .addConst ("MidiChannelPressureAutomation", ARDOUR::AutomationType(MidiChannelPressureAutomation))
+               .addConst ("MidiNotePressureAutomation", ARDOUR::AutomationType(MidiNotePressureAutomation))
+               .addConst ("MidiSystemExclusiveAutomation", ARDOUR::AutomationType(MidiSystemExclusiveAutomation))
                .endNamespace ()
 
                .beginNamespace ("SrcQuality")