[SCM] calf/master: + Compressor: Fixed bug in knee code so knees are relative to the threshold.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:03 UTC 2013


The following commit has been merged in the master branch:
commit 5af046b323e945782da931ca526cd56a49578845
Author: Thor Harald Johansen <thj at thj.no>
Date:   Fri Oct 31 22:35:07 2008 +0100

    + Compressor: Fixed bug in knee code so knees are relative to the threshold.

diff --git a/src/calf/modules_dev.h b/src/calf/modules_dev.h
index ecb026b..ade45f1 100644
--- a/src/calf/modules_dev.h
+++ b/src/calf/modules_dev.h
@@ -62,7 +62,7 @@ public:
                     target /= ratio;
                     target += threshold;
                     if(knee < 1) {
-                        float t = std::min(1.f, std::max(0.f, asample - knee) / (1.f - knee) / threshold);
+                        float t = std::min(1.f, std::max(0.f, asample / threshold - knee) / (1.f - knee));
                         target = (target - asample) * t + asample;
                     }
                     target /= asample;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list