GUI: new sample map UI, part 2

next commit will introduce keyboard input
This commit is contained in:
tildearrow 2023-04-11 19:41:20 -05:00
parent f90ca2410f
commit 7af514a658
4 changed files with 69 additions and 9 deletions

View file

@ -415,10 +415,14 @@ void FurnaceGUI::drawPiano() {
e->previewSample(curSample,note);
break;
default:
e->synchronized([this,note]() {
e->autoNoteOn(-1,curIns,note);
});
if (edit && curWindow!=GUI_WINDOW_INS_LIST && curWindow!=GUI_WINDOW_INS_EDIT) noteInput(note,0);
if (sampleMapWaitingInput) {
alterSampleMap(true,note);
} else {
e->synchronized([this,note]() {
e->autoNoteOn(-1,curIns,note);
});
if (edit && curWindow!=GUI_WINDOW_INS_LIST && curWindow!=GUI_WINDOW_INS_EDIT) noteInput(note,0);
}
break;
}
}