summaryrefslogtreecommitdiffstats
path: root/src/adsr.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2023-06-27 22:37:53 +0300
committergramanas <anastasis.gramm2@gmail.com>2023-06-27 22:37:53 +0300
commit60c82a72fedd719f69c1f1de896aca00784a2881 (patch)
tree3679e0886fc12aa8eeeab60260347ee7a0c5ae0e /src/adsr.c
parente77d4d42cacd21bf80e4f47cba2fe85f5a5b0991 (diff)
downloadsynth-project-60c82a72fedd719f69c1f1de896aca00784a2881.tar.gz
synth-project-60c82a72fedd719f69c1f1de896aca00784a2881.tar.bz2
synth-project-60c82a72fedd719f69c1f1de896aca00784a2881.zip
Changes
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);
}