summaryrefslogtreecommitdiff
path: root/gtk2_ardour/virtual_keyboard_window.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-12-18 15:01:17 +0100
committerRobin Gareus <robin@gareus.org>2019-12-19 18:45:49 +0100
commit89ca6e151a38a1fc4cdeac0d2fc0bc385a5a38d3 (patch)
tree4106516c5150c2f9f6bd0ac1a25f1c5b196f47f5 /gtk2_ardour/virtual_keyboard_window.h
parent8deed500a4840b15156be415eadd6d353b254557 (diff)
Vkeybd: add a mod-wheel
Diffstat (limited to 'gtk2_ardour/virtual_keyboard_window.h')
-rw-r--r--gtk2_ardour/virtual_keyboard_window.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk2_ardour/virtual_keyboard_window.h b/gtk2_ardour/virtual_keyboard_window.h
index 0db53472f2..c4a03761b5 100644
--- a/gtk2_ardour/virtual_keyboard_window.h
+++ b/gtk2_ardour/virtual_keyboard_window.h
@@ -103,6 +103,10 @@ private:
void note_on_event_handler (int, int);
void note_off_event_handler (int);
void control_change_event_handler (int, int);
+ void control_change_knob_event_handler (int, int);
+
+ void modwheel_update_tooltip (int);
+ void modwheel_slider_adjusted ();
void octave_key_event_handler (bool);
void pitch_bend_key_event_handler (int, bool);
@@ -119,6 +123,8 @@ private:
void update_octave_range ();
void bank_patch ();
void update_sensitivity ();
+ void cc_key_changed (size_t);
+ void update_cc (size_t, int);
bool toggle_config (GdkEventButton*);
bool toggle_bankpatch (GdkEventButton*);
bool toggle_yaxis_velocity (GdkEventButton*);
@@ -155,7 +161,11 @@ private:
ArdourWidgets::VSliderController* _pitch_slider;
Gtkmm2ext::PersistentTooltip* _pitch_slider_tooltip;
-#define VKBD_NCTRLS 8
+ boost::shared_ptr<VKBDControl> _modwheel;
+ Gtk::Adjustment _modwheel_adjustment;
+ ArdourWidgets::VSliderController* _modwheel_slider;
+ Gtkmm2ext::PersistentTooltip* _modwheel_tooltip;
+#define VKBD_NCTRLS 4
boost::shared_ptr<VKBDControl> _cc[VKBD_NCTRLS];
ArdourWidgets::ArdourKnob* _cc_knob[VKBD_NCTRLS];