GUI: remove instrument when deleting one note

This commit is contained in:
tildearrow 2022-01-11 18:50:44 -05:00
parent b26ef5ac82
commit 5dfe19e52d
1 changed files with 1 additions and 0 deletions

View File

@ -1978,6 +1978,7 @@ void FurnaceGUI::doDelete() {
for (int j=selStart.y; j<=selEnd.y; j++) { for (int j=selStart.y; j<=selEnd.y; j++) {
if (iFine==0) { if (iFine==0) {
pat->data[j][iFine]=0; pat->data[j][iFine]=0;
if (selStart.y==selEnd.y) pat->data[j][2]=-1;
} }
pat->data[j][iFine+1]=(iFine<1)?0:-1; pat->data[j][iFine+1]=(iFine<1)?0:-1;
} }