fix piano keys sometimes turning black

This commit is contained in:
Eknous-P 2025-11-25 12:54:02 +04:00
parent fff98379e9
commit c258c50758

View file

@ -696,6 +696,7 @@ void FurnaceGUI::drawPattern() {
}
} else if (settings.channelFeedbackStyle==4 && e->isRunning()) {
float amount=powf(chanOscVol[i],settings.channelFeedbackGamma);
if (isnan(amount)) amount=0; // how is it nan tho??
if (e->getChanState(i)->keyOff) amount=0.0f;
keyHit[i]=amount*0.2f;
if (!muted && e->getChanState(i)->keyOn) {