- Fixed: When an instrument's envelope runs out, it does not immediately ramp
to zero. Rather, it lets the remainder of the sample finish playing. SVN r938 (trunk)
This commit is contained in:
parent
52f6549aa0
commit
6ce25fe6c3
4 changed files with 34 additions and 29 deletions
|
|
@ -43,8 +43,9 @@ int recompute_envelope(Voice *v)
|
|||
/* Envelope ran out. */
|
||||
/* play sampled release */
|
||||
v->status &= ~(VOICE_SUSTAINING | VOICE_LPE);
|
||||
v->status |= VOICE_RELEASING | VOICE_STOPPING;
|
||||
return 1;
|
||||
v->status |= VOICE_RELEASING;
|
||||
v->envelope_increment = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (stage == RELEASE && !(v->status & VOICE_RELEASING) && (v->sample->modes & PATCH_SUSTAIN))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue