From cb107ebbacf1558b183ab4f94f033113499cfe1d Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 30 Mar 2022 04:49:15 -0500 Subject: [PATCH] GUI: possibly fix out-of-range notes in preview now they should release --- src/gui/gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 77aa687ea..f3a6eced3 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -730,6 +730,8 @@ void FurnaceGUI::stopPreviewNote(SDL_Scancode scancode) { try { int key=noteKeys.at(scancode); int num=12*curOctave+key; + if (num<-60) num=-60; // C-(-5) + if (num>119) num=119; // B-9 if (key==100) return; if (key==101) return;