[SCM] calf/master: + Framework: remove (if'ed out) monotonic Hermite code

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


The following commit has been merged in the master branch:
commit 1ca7a2ef7da5d41fa501c43e6dea4f6cd28482e5
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Wed Nov 26 23:37:11 2008 +0000

    + Framework: remove (if'ed out) monotonic Hermite code

diff --git a/src/calf/primitives.h b/src/calf/primitives.h
index 80abe31..e76a154 100644
--- a/src/calf/primitives.h
+++ b/src/calf/primitives.h
@@ -493,27 +493,6 @@ inline float hermite_interpolation(float x, float x0, float x1, float p0, float
 {
     float width = x1 - x0;
     float t = (x - x0) / width;
-#if 0
-    // attempt to adjust the slopes to avoid "bumps" - removed, because it's not exactly what we wanted!
-    float delta = (p1-p0)/width;
-    if (fabs(delta) == small_value<float>())
-    {
-        m0 = m1 = 0.f;
-    }
-    else
-    {
-        float idelta = 1.0 / delta;
-        float alpha = m0 / delta;
-        float beta = m1 / delta;
-        if (alpha*alpha + beta*beta > 9)
-        {
-            float sc = (3.0 * delta) / sqrt(m0*m0+m1*m1);
-            m0 = sc * alpha * delta;
-            m1 = sc * beta * delta;
-            // printf("bump...%f\n", sc);
-        }
-    }
-#endif    
     m0 *= width;
     m1 *= width;
     float t2 = t*t;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list