diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-07 16:28:15 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:30 -0500 |
commit | 33a2995fd8c335673788aeb2ccb75b9f43bb4b40 (patch) | |
tree | 007cc7edb1cbe3ba0709a37f78d8c20e02dcef23 /libs/surfaces/push2/push2.h | |
parent | 70477e6fedee80a4e785d4da65c873329d06f76a (diff) |
push2: save and restore push2 pad state, etc.
Diffstat (limited to 'libs/surfaces/push2/push2.h')
-rw-r--r-- | libs/surfaces/push2/push2.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libs/surfaces/push2/push2.h b/libs/surfaces/push2/push2.h index e39c07e76c..d92bf89755 100644 --- a/libs/surfaces/push2/push2.h +++ b/libs/surfaces/push2/push2.h @@ -100,7 +100,12 @@ class Push2 : public ARDOUR::ControlProtocol void set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey); - private: + MusicalMode::Type mode() const { return _mode; } + int scale_root() const { return _scale_root; } + int root_octave() const { return _root_octave; } + bool in_key() const { return _in_key; } + + private: libusb_device_handle *handle; uint8_t frame_header[16]; uint16_t* device_frame_buffer; @@ -514,10 +519,10 @@ class Push2 : public ARDOUR::ControlProtocol std::map<int,int> pad_map; void build_pad_table(); - MusicalMode::Type mode; - int scale_root; - int root_octave; - bool in_key; + MusicalMode::Type _mode; + int _scale_root; + int _root_octave; + bool _in_key; int octave_shift; }; |