diff options
| author | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 10:39:18 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 10:39:18 +0100 |
| commit | e3921dfbd1530ff379ffcb7af19c775b96933f7d (patch) | |
| tree | 8a5ade5b53ecb4263cf400d845a8b95bb9fb8344 /maximilian.cpp | |
| parent | 40a09191d818c964d5ea8bceb2ea56b1c362bd3a (diff) | |
fixed gate clicking on retrig
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maximilian.cpp b/maximilian.cpp index 4e64cbd..f8e9b01 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -857,11 +857,11 @@ double maxiDyn::gate(double input, double threshold, long holdtime, double attac holdcount=0; releasephase=0; attackphase=1; - amplitude=0; + if(amplitude==0) amplitude=0.01; } if (attackphase==1 && amplitude<1) { - amplitude+=(1*attack); + amplitude*=(1+attack); output=input*amplitude; } |
