mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
GUI: possibly fix out-of-range notes in preview
now they should release
This commit is contained in:
parent
cccf90d417
commit
cb107ebbac
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue