cleanup envelopeGenerator initialization
This commit is contained in:
@@ -26,7 +26,7 @@ float Envelope::process() {
|
||||
state_ = State::Decay;
|
||||
}
|
||||
break;
|
||||
case State::Decay:
|
||||
case State::Decay: // TODO: if noteOff occurs during decay, release doesn't trigger until decay finishes
|
||||
value_ -= (1.0f - sustain_) / (decay_ * sampleRate_);
|
||||
if(value_ <= sustain_) {
|
||||
value_ = sustain_;
|
||||
|
||||
Reference in New Issue
Block a user