Skip to content

Commit

Permalink
Merge pull request mixxxdj#1260 from ferranpujolcamins/reverbSignalPath
Browse files Browse the repository at this point in the history
Convert reverb into a send effect
  • Loading branch information
daschuer authored May 15, 2017
2 parents ecdd2fb + 99ea97b commit 309457e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/reverb/Reverb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}

0 comments on commit 309457e

Please sign in to comment.