diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-21 23:07:35 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:31 -0500 |
commit | 33713d6f68934739fea7d48b04077409bf6a0966 (patch) | |
tree | e9861ff69aa7de1eb99f2133813a09d4bed8ff71 /libs/surfaces | |
parent | a4cd0d7dae33e2243c75b008c77b6865ead3652c (diff) |
push2: reset pad colors when necessary
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/push2/push2.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/surfaces/push2/push2.cc b/libs/surfaces/push2/push2.cc index 8a444b8c73..68ec8d7b91 100644 --- a/libs/surfaces/push2/push2.cc +++ b/libs/surfaces/push2/push2.cc @@ -1249,6 +1249,12 @@ Push2::pad_note (int row, int col) const } void +Push2::reset_pad_colors () +{ + set_pad_scale (_scale_root, _root_octave, _mode, _in_key); +} + +void Push2::set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey) { MusicalMode m (mode); @@ -1333,6 +1339,7 @@ Push2::set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey) pad->filtered = -1; } + pad->set_state (LED::OneShot24th); write (pad->state_msg()); } } @@ -1372,6 +1379,7 @@ Push2::set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey) } + pad->set_state (LED::OneShot24th); write (pad->state_msg()); } } |