diff options
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
