[SCM] calf/master: + Compressor: limit knee to 12dB, remove slope-limiting workaround
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:38:34 UTC 2013
The following commit has been merged in the master branch:
commit 9b00444802f81c69127f974556c338ee22a3ab43
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Wed Nov 19 22:28:28 2008 +0000
+ Compressor: limit knee to 12dB, remove slope-limiting workaround
diff --git a/src/calf/primitives.h b/src/calf/primitives.h
index 78e4155..80abe31 100644
--- a/src/calf/primitives.h
+++ b/src/calf/primitives.h
@@ -493,6 +493,8 @@ 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>())
{
@@ -511,6 +513,7 @@ inline float hermite_interpolation(float x, float x0, float x1, float p0, float
// printf("bump...%f\n", sc);
}
}
+#endif
m0 *= width;
m1 *= width;
float t2 = t*t;
diff --git a/src/modules.cpp b/src/modules.cpp
index 3b0bf25..4a419be 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -182,7 +182,7 @@ CALF_PORT_PROPS(compressor) = {
{ 15, 0.01, 2000, 0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "attack", "Attack" },
{ 150, 0.01, 2000, 0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_MSEC, NULL, "release", "Release" },
{ 2, 1, 16, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "makeup", "Makeup Gain" },
- { 1, 1, 16, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "knee", "Knee" },
+ { 2, 1, 4, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_DB, NULL, "knee", "Knee" },
{ 0, 0, 1, 0, PF_ENUM | PF_CTL_COMBO, compressor_detection_names, "detection", "Detection" },
{ 0, 0, 1, 0, PF_ENUM | PF_CTL_COMBO, compressor_stereo_link_names, "stereo_link", "Stereo Link" },
{ 0, 0, 1, 0, PF_BOOL | PF_CTL_TOGGLE, NULL, "aweighting", "A-weighting" },
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list