From e66a6fa23039cfb5d10ddcc8b12ba809fc6af9b6 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Mon, 29 Aug 2011 03:10:21 +0200 Subject: [PATCH] Fix improper modulus for grid position --- Sources/VLPitchGrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/VLPitchGrid.cpp b/Sources/VLPitchGrid.cpp index e6dccc2..974aefe 100644 --- a/Sources/VLPitchGrid.cpp +++ b/Sources/VLPitchGrid.cpp @@ -239,7 +239,7 @@ void VLVisualFilter::ResetWithKey(int key) uint16_t VLVisualFilter::operator()(int gridPos, uint16_t visual) { - gridPos = (gridPos+60) % 12; + gridPos = (gridPos+700) % 7; visual &= VLNote::kAccidentalsMask; if (visual == VLNote::kWantNatural) visual = 0;