From fda6ab0e84acdf1968d10aff443e9e1f41237288 Mon Sep 17 00:00:00 2001 From: nwolek Date: Sat, 26 Dec 2015 15:54:52 -0500 Subject: [PATCH] DelayWithInterpolation: SharedSampleBundleGroup operator now using interpolation class, passes tests. see issue #60 --- include/objects/JamomaDelay.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/objects/JamomaDelay.h b/include/objects/JamomaDelay.h index 7cc6dba..72f585c 100644 --- a/include/objects/JamomaDelay.h +++ b/include/objects/JamomaDelay.h @@ -195,14 +195,16 @@ namespace Jamoma { // compute the first out Sample with the value we stashed in tailBeforeWrite out[0][channel][0] = - fractionalDelay() * tailBeforeWrite + - oneMinusFractionalDelay() * tailPull[channel][0]; + mInterpolation(tailPull[channel][0], + tailBeforeWrite, + fractionalDelay()); // then for loop through the rest with the tailPull SampleBundle for (int frame=1; frame < x.frameCount(); ++frame) { out[0][channel][frame] = - fractionalDelay() * tailPull[channel][frame-1] + - oneMinusFractionalDelay() * tailPull[channel][frame]; + mInterpolation (tailPull[channel][frame], + tailPull[channel][frame-1], + fractionalDelay()); }