From 18082e973617df8062ce74db8edad8765224833e Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 28 Aug 2011 23:41:49 +0200 Subject: [PATCH] Mask visuals --- Sources/VLPitchGrid.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/VLPitchGrid.cpp b/Sources/VLPitchGrid.cpp index b1d12b9..e6dccc2 100644 --- a/Sources/VLPitchGrid.cpp +++ b/Sources/VLPitchGrid.cpp @@ -240,6 +240,7 @@ void VLVisualFilter::ResetWithKey(int key) uint16_t VLVisualFilter::operator()(int gridPos, uint16_t visual) { gridPos = (gridPos+60) % 12; + visual &= VLNote::kAccidentalsMask; if (visual == VLNote::kWantNatural) visual = 0; if (visual != fState[gridPos]) {