aboutsummaryrefslogtreecommitdiff
path: root/modules/eadsr.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/eadsr.c')
-rw-r--r--modules/eadsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/eadsr.c b/modules/eadsr.c
index 0e0b9db..bba96cd 100644
--- a/modules/eadsr.c
+++ b/modules/eadsr.c
@@ -115,7 +115,7 @@ static t_int *eadsr_perform(t_int *w)
state -= decay*(state-sustain);
}
- ctl->c_state = state;
+ ctl->c_state = IS_DENORMAL(state) ? 0 : state;
return (w+4);
}