GUI: partially add a piano

This commit is contained in:
tildearrow 2022-04-13 03:24:49 -05:00
parent 2e2fafd878
commit e86174921b
4 changed files with 106 additions and 3 deletions

View file

@ -494,6 +494,12 @@ void FurnaceGUI::drawPattern() {
ImVec4 chanHeadHover=chanHead;
if (e->keyHit[i]) {
keyHit[i]=0.2;
if (!muted) {
int note=e->getChanState(i)->note+60;
if (note>=0 && note<180) {
pianoKeyHit[note]=1.0;
}
}
e->keyHit[i]=false;
}
if (settings.guiColorsBase) {