From 6c399125930609645c6aabd055aa6ea8fe54a2ed Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Wed, 19 Oct 2011 14:32:48 +0100 Subject: fixed compressor --- maximilian.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'maximilian.cpp') diff --git a/maximilian.cpp b/maximilian.cpp index ccf4e5f..f0fd10b 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -896,12 +896,12 @@ double maxiDyn::compressor(double input, double ratio, double threshold, double } if (input>0.) { - output = ((input-threshold)/1.+currentRatio)+threshold; + output = input/(1.+currentRatio); } else { - output = ((input+threshold)/1.+currentRatio)-threshold; + output = input/(1.+currentRatio); } - return output; + return output*ratio; } -- cgit v1.3