Skip to content

Commit ebbe2cf

Browse files
committed
Fix root note offset
1 parent 103ddf7 commit ebbe2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Applications/Note/ScaleVisualizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ScaleVisualizer : public UIComponent {
5353
((*scale << *rootKey) + ((*scale & 0xFFF) >> (12 - *rootKey % 12))) & 0xFFF;
5454

5555
if (bitRead(c_aligned_scale_map, note)) {
56-
*rootOffset = (note + 12) - *rootKey;
56+
*rootOffset = ((note + 12) - *rootKey) % 12;
5757
}
5858
} else {
5959
*rootKey = note;

0 commit comments

Comments
 (0)