Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Thanks @rsta2!
  • Loading branch information
Holger Wirtz committed Mar 18, 2022
1 parent 31733bc commit 5bceb75
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/dexed.cpp
Expand Up @@ -406,6 +406,15 @@ void Dexed::setSustain(bool s)
return;

sustain = s;

if (!sustain) {
for (int note = 0; note < max_notes; note++) {
if (voices[note].sustained && !voices[note].keydown) {
voices[note].dx7_note->keyup();
voices[note].sustained = false;
}
}
}
}

bool Dexed::getSustain(void)
Expand Down

0 comments on commit 5bceb75

Please sign in to comment.