From 0318d3cd64557156bfd9851a4dec53bf03395b17 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 8 Jul 2016 16:13:15 -0400 Subject: [PATCH] add explanatory comment --- libs/surfaces/push2/push2.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/surfaces/push2/push2.cc b/libs/surfaces/push2/push2.cc index bd058c6707..60570e5d89 100644 --- a/libs/surfaces/push2/push2.cc +++ b/libs/surfaces/push2/push2.cc @@ -1772,6 +1772,8 @@ Push2::set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey) mode_map.insert (note); mode_vector.push_back (note); + /* build a map of all notes in the mode, from the root to 127 */ + while (note < 128) { if (interval == m.steps.end()) {