aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaMultiBand.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-13 23:17:14 +0000
committerDavid Robillard <d@drobilla.net>2012-05-13 23:17:14 +0000
commit883d94c5eaea616f9fd448d6f0987f5d405e570a (patch)
treeb5cf05c32c3a03d458a0b16b69433b680af8bf0a /src/mdaMultiBand.cpp
parent99438f157dd7916335aef306b07a7193a1c70175 (diff)
downloadmda.lv2-883d94c5eaea616f9fd448d6f0987f5d405e570a.tar.gz
mda.lv2-883d94c5eaea616f9fd448d6f0987f5d405e570a.tar.bz2
mda.lv2-883d94c5eaea616f9fd448d6f0987f5d405e570a.zip
Comment out dead code.
Fix uninitialised member variables. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4401 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaMultiBand.cpp')
-rw-r--r--src/mdaMultiBand.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mdaMultiBand.cpp b/src/mdaMultiBand.cpp
index 984e3b4..9ae5c96 100644
--- a/src/mdaMultiBand.cpp
+++ b/src/mdaMultiBand.cpp
@@ -279,7 +279,7 @@ void mdaMultiBand::process(float **inputs, float **outputs, int32_t sampleFrames
float *out2 = outputs[1];
float a, b, c, d, l=fb3, m, h, s, sl=slev, tmp1, tmp2, tmp3;
float f1i=fi1, f1o=fo1, f2i=fi2, f2o=fo2, b1=fb1, b2=fb2;
- float g1=gain1, d1=driv1, t1=trim1, a1=att1, r1=1.f - rel1;
+ float g1=gain1, /*d1=driv1,*/ t1=trim1, a1=att1, r1=1.f - rel1;
float g2=gain2, d2=driv2, t2=trim2, a2=att2, r2=1.f - rel2;
float g3=gain3, d3=driv3, t3=trim3, a3=att3, r3=1.f - rel3;
int ms=mswap;
@@ -306,7 +306,7 @@ void mdaMultiBand::process(float **inputs, float **outputs, int32_t sampleFrames
tmp1 = (l>0)? l : -l; //l
g1 = (tmp1>g1)? g1+a1*(tmp1-g1) : g1*r1;
- tmp1 = 1.f / (1.f + d1 * g1);
+ //tmp1 = 1.f / (1.f + d1 * g1);
tmp2 = (m>0)? m : -m;
g2 = (tmp2>g2)? g2+a2*(tmp2-g2) : g2*r2;
@@ -338,7 +338,7 @@ void mdaMultiBand::processReplacing(float **inputs, float **outputs, int32_t sam
float *out2 = outputs[1];
float a, b, c, d, l=fb3, m, h, s, sl=slev, tmp1, tmp2, tmp3;
float f1i=fi1, f1o=fo1, f2i=fi2, f2o=fo2, b1=fb1, b2=fb2;
- float g1=gain1, d1=driv1, t1=trim1, a1=att1, r1=1.f - rel1;
+ float g1=gain1, /*d1=driv1,*/ t1=trim1, a1=att1, r1=1.f - rel1;
float g2=gain2, d2=driv2, t2=trim2, a2=att2, r2=1.f - rel2;
float g3=gain3, d3=driv3, t3=trim3, a3=att3, r3=1.f - rel3;
int ms=mswap;
@@ -363,7 +363,7 @@ void mdaMultiBand::processReplacing(float **inputs, float **outputs, int32_t sam
tmp1 = (l>0)? l : -l; //l
g1 = (tmp1>g1)? g1+a1*(tmp1-g1) : g1*r1;
- tmp1 = 1.f / (1.f + d1 * g1);
+ //tmp1 = 1.f / (1.f + d1 * g1);
tmp2 = (m>0)? m : -m;
g2 = (tmp2>g2)? g2+a2*(tmp2-g2) : g2*r2;