diff options
| author | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 14:32:48 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 14:32:48 +0100 |
| commit | 6c399125930609645c6aabd055aa6ea8fe54a2ed (patch) | |
| tree | 8fa983559e9a81f2e4f87ed014621634cc998260 /maximilian.cpp | |
| parent | 25123134eb0d6f3c12ad136fd5b86f0280b4bb0d (diff) | |
fixed compressor
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; } |
