We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b421646 commit af9ef14Copy full SHA for af9ef14
Applications/Note/NotePad.cpp
@@ -52,8 +52,8 @@ Dimension NotePad::GetSize() {
52
}
53
54
NoteType NotePad::InScale(int16_t note) {
55
+ note += 120; // add a big pos offset to make sure we don't get negative after mod
56
note %= 12;
- note = abs(note);
57
58
if (note == ((rt->config->rootKey + rt->config->rootOffset) % 12))
59
return ROOT_NOTE; // It is a root key
0 commit comments