checkpoint

This commit is contained in:
2025-12-28 16:22:24 -06:00
parent e152f315b4
commit 7284cfc1ab
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ float Envelope::process() {
state_ = State::Decay;
}
break;
case State::Decay:
case State::Decay: // TODO: noteOff during decay means release occurs longer than expected
value_ -= (1.0f - sustain_) / (decay_ * sampleRate_);
if(value_ <= sustain_) {
value_ = sustain_;