diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-21 15:25:44 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:31 -0500 |
commit | 6f2ac5d6addd1562667c51bdda64ba471cc23d31 (patch) | |
tree | a5e2cd42101fe3b539cc5c6eef90cefde9409ecf /libs/surfaces/push2/push2.h | |
parent | b6ecc56e7a724097ebf6c0589ce64fe1cb409db9 (diff) |
push2: various changes in support of menus and scale mode
Diffstat (limited to 'libs/surfaces/push2/push2.h')
-rw-r--r-- | libs/surfaces/push2/push2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/surfaces/push2/push2.h b/libs/surfaces/push2/push2.h index f1a5d8fcfd..2fcfbb3173 100644 --- a/libs/surfaces/push2/push2.h +++ b/libs/surfaces/push2/push2.h @@ -328,6 +328,7 @@ class Push2 : public ARDOUR::ControlProtocol PBD::Signal0<void> PadChange; void set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey); + PBD::Signal0<void> ScaleChange; MusicalMode::Type mode() const { return _mode; } int scale_root() const { return _scale_root; } @@ -335,6 +336,8 @@ class Push2 : public ARDOUR::ControlProtocol bool in_key() const { return _in_key; } Push2Layout* current_layout() const; + void use_previous_layout (); + Push2Canvas* canvas() const { return _canvas; } enum ModifierState { @@ -348,6 +351,8 @@ class Push2 : public ARDOUR::ControlProtocol Button* button_by_id (ButtonID); static std::string button_name_by_id (ButtonID); + void strip_buttons_off (); + void write (const MidiByteArray&); uint8_t get_color_index (uint32_t rgb); @@ -516,6 +521,7 @@ class Push2 : public ARDOUR::ControlProtocol mutable Glib::Threads::Mutex layout_lock; Push2Layout* _current_layout; + Push2Layout* _previous_layout; Push2Layout* mix_layout; Push2Layout* scale_layout; Push2Layout* track_mix_layout; |