summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFerran Pujol Camins <ferranpujolcamins@gmail.com>2017-05-13 19:02:23 +0200
committerFerran Pujol Camins <ferranpujolcamins@gmail.com>2017-05-13 19:02:23 +0200
commit99ea97ba5f5ee9805031a13472f51d39a91e38d7 (patch)
tree1df06471eab8b0a484afa57043d724503dced75d /lib
parent3a3c8195be1d59c689766a15780ee36de0bb838b (diff)
Convert reverb into a send effect
Diffstat (limited to 'lib')
-rw-r--r--lib/reverb/Reverb.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/reverb/Reverb.cc b/lib/reverb/Reverb.cc
index c7a24e8128..75f62affcc 100644
--- a/lib/reverb/Reverb.cc
+++ b/lib/reverb/Reverb.cc
@@ -445,18 +445,16 @@ void MixxxPlateX2::processBuffer(const sample_t* in, sample_t* out, const uint f
tank.damping[1].set(damp);
// set blend
sample_t blend = pow(blendParam, 1.53);
- sample_t dry = 1 - blend;
// the modulated lattices interpolate, which needs truncated float
DSP::FPTruncateMode _truncate;
// loop through the buffer, processing each sample
- // note (timrae):treat the effect as SEND type instead of INSERT type for smoother parameter changes
for (uint i = 0; i + 1 < frames; i += 2) {
sample_t mono_sample = blend*(in[i] + in[i + 1]) / 2;
sample_t xl, xr;
PlateStub::process(mono_sample, decay, &xl, &xr);
- out[i] = xl + dry*in[i];
- out[i + 1] = xr + dry*in[i + 1];
+ out[i] = xl + in[i];
+ out[i + 1] = xr + in[i + 1];
}
}