Add a PianoKeyboard to GenericUI (on a MIDI track)

This commit is contained in:
Robin Gareus 2017-09-08 22:56:18 +02:00
parent 64be124fe0
commit 746665e89c
2 changed files with 112 additions and 1 deletions

View file

@ -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);