From 60c82a72fedd719f69c1f1de896aca00784a2881 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 27 Jun 2023 22:37:53 +0300 Subject: Changes --- src/adsr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/adsr.c') 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); } -- cgit v1.2.3