GUI: possibly fix out-of-range notes in preview

now they should release
This commit is contained in:
tildearrow 2022-03-30 04:49:15 -05:00
parent cccf90d417
commit cb107ebbac

View file

@ -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;