From 33713d6f68934739fea7d48b04077409bf6a0966 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 21 Sep 2016 23:07:35 -0500 Subject: [PATCH] push2: reset pad colors when necessary --- libs/surfaces/push2/push2.cc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ -1248,6 +1248,12 @@ Push2::pad_note (int row, int col) const return 0; } +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) { @@ -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()); } }