summaryrefslogtreecommitdiffstats
path: root/src/adsr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/adsr.c')
-rw-r--r--src/adsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adsr.c b/src/adsr.c
index 8ef2ba9..4336bb5 100644
--- a/src/adsr.c
+++ b/src/adsr.c
@@ -43,5 +43,5 @@ adsr_amplitude(adsr_t *adsr, float noteOn, float noteOff, unsigned long long ela
if (mod <= 0.000)
mod = 0.0;
- return clamp(mod);
+ return clamp(mod, -1, 1);
}