GUI: add a hint when an ins cannot be previewed

This commit is contained in:
tildearrow 2023-10-15 17:02:25 -05:00
parent 256140bc32
commit 061b8e7aa1
8 changed files with 32 additions and 6 deletions

View file

@ -398,6 +398,7 @@ void FurnaceGUI::drawPiano() {
default:
e->synchronized([this,note]() {
e->autoNoteOff(-1,note);
failedNoteOn=false;
});
break;
}
@ -423,7 +424,7 @@ void FurnaceGUI::drawPiano() {
alterSampleMap(1,note);
} else {
e->synchronized([this,note]() {
e->autoNoteOn(-1,curIns,note);
if (!e->autoNoteOn(-1,curIns,note)) failedNoteOn=true;
});
if (edit && curWindow!=GUI_WINDOW_INS_LIST && curWindow!=GUI_WINDOW_INS_EDIT) noteInput(note,0);
}