Skip to content

Commit

Permalink
DelayWithInterpolation: SharedSampleBundleGroup operator now using in…
Browse files Browse the repository at this point in the history
…terpolation class, passes tests. see issue #60
  • Loading branch information
nwolek committed Dec 26, 2015
1 parent 7a2365e commit fda6ab0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/objects/JamomaDelay.h
Original file line number Diff line number Diff line change
Expand Up @@ -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());

}

Expand Down

0 comments on commit fda6ab0

Please sign in to comment.