Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into beatloop_size
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed May 17, 2017
2 parents 5b60fcd + 309457e commit 9bd5ff8
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 9bd5ff8

Please sign in to comment.