From e3921dfbd1530ff379ffcb7af19c775b96933f7d Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Wed, 19 Oct 2011 10:39:18 +0100 Subject: fixed gate clicking on retrig --- maximilian.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maximilian.cpp') 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; } -- cgit v1.3