Don't change height when keying off a voice.

Tests show that the height does not revert to the sustain level.
This commit is contained in:
Unknown W. Brackets 2014-02-16 10:57:08 -08:00
parent 1a010a37ab
commit d097ac5394

View file

@ -782,9 +782,6 @@ void ADSREnvelope::KeyOn() {
void ADSREnvelope::KeyOff() {
SetState(STATE_RELEASE);
// Does this really make sense? I don't think so, the release-decay should happen
// from whatever level we are at, although the weirdo exponentials we have start at a fixed state :(
height_ = sustainLevel;
}
void ADSREnvelope::End() {