diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-22 10:27:21 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:31 -0500 |
commit | cb340bf190f2835761392a581e22a6c6d5635928 (patch) | |
tree | bcaa800da2bdf9f479b0206c289b9e825c11bbf8 /libs/surfaces/push2/push2.h | |
parent | 0add64d4ab2609d8b0c0cab4b3500e3edf02bbe2 (diff) |
push2: when playing pads, flash all pad LEDs for the same note number for the pressed pad
Diffstat (limited to 'libs/surfaces/push2/push2.h')
-rw-r--r-- | libs/surfaces/push2/push2.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/surfaces/push2/push2.h b/libs/surfaces/push2/push2.h index e102d83308..56229fc8ef 100644 --- a/libs/surfaces/push2/push2.h +++ b/libs/surfaces/push2/push2.h @@ -392,10 +392,17 @@ class Push2 : public ARDOUR::ControlProtocol void init_buttons (bool startup); void init_touch_strip (); - /* map of Pads by note number */ + /* map of Pads by note number (the "fixed" note number sent by the + * hardware, not the note number generated if the pad is touched) + */ typedef std::map<int,Pad*> NNPadMap; NNPadMap nn_pad_map; + /* map of Pads by note number they generate (their "filtered" value) + */ + typedef std::multimap<int,Pad*> FNPadMap; + FNPadMap fn_pad_map; + void set_button_color (ButtonID, uint8_t color_index); void set_button_state (ButtonID, LED::State); void set_led_color (ButtonID, uint8_t color_index); |