diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-08 22:56:18 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-08 23:35:00 +0200 |
commit | 746665e89cf66c5688cd584555168bb8323b824e (patch) | |
tree | 41ae2800d30101ee3a2d593080b59b23e61a06da /gtk2_ardour/plugin_ui.h | |
parent | 64be124fe0f4f9efa456c90944b80b00483458a6 (diff) |
Add a PianoKeyboard to GenericUI (on a MIDI track)
Diffstat (limited to 'gtk2_ardour/plugin_ui.h')
-rw-r--r-- | gtk2_ardour/plugin_ui.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_ui.h b/gtk2_ardour/plugin_ui.h index d685e86bdc..370ceba600 100644 --- a/gtk2_ardour/plugin_ui.h +++ b/gtk2_ardour/plugin_ui.h @@ -55,6 +55,7 @@ #include "ardour_window.h" #include "automation_controller.h" +#include "gtk_pianokeyboard.h" namespace ARDOUR { class PluginInsert; @@ -304,6 +305,19 @@ private: void scroller_size_request (Gtk::Requisition*); Gtk::ScrolledWindow scroller; + Gtk::Expander _plugin_pianokeyboard_expander; + PianoKeyboard* _piano; + Gtk::Widget* _pianomm; + Gtk::VBox _pianobox; + Gtk::SpinButton _piano_velocity; + Gtk::SpinButton _piano_channel; + + static void _note_on_event_handler (GtkWidget*, int, gpointer); + static void _note_off_event_handler (GtkWidget*, int, gpointer); + void note_on_event_handler (int); + void note_off_event_handler (int); + + void toggle_pianokeyboard (); void build_midi_table (); void midi_refill_patches (); void midi_bank_patch_change (uint8_t chn); |