GUI: fix note pasting

issue #23
This commit is contained in:
tildearrow 2022-01-19 04:32:40 -05:00
parent dce289a5a0
commit 44ef49d267
3 changed files with 13 additions and 2 deletions

View file

@ -147,10 +147,10 @@ bool FurnaceGUI::decodeNote(const char* what, short& note, short& octave) {
if (strcmp(what,noteNames[i])==0) {
if ((i%12)==0) {
note=12;
octave=(i/12)-1;
octave=(unsigned char)((i/12)-6);
} else {
note=i%12;
octave=i/12;
octave=(unsigned char)((i/12)-5);
}
return true;
}