Skip to content

Commit

Permalink
Interpolator: adding reset() function to Allpass, fixes inconsistency…
Browse files Browse the repository at this point in the history
… in overload operator. issue #67
  • Loading branch information
nwolek committed Dec 31, 2015
1 parent 9d4e132 commit 417a367
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/core/JamomaInterpolator.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ namespace Jamoma {
last_out = out;
return out;
}

void reset() {
last_out = T(0.0);
}
};


Expand Down
1 change: 1 addition & 0 deletions test/Interpolator/Interpolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ class InterpolatorTest {
temp = 0.0;
tempExpected = 0.0;
delta = 0.0;
my_interp.reset();

for (int i = 0; i < expectedOutputAllpass.size(); i++) {
delta = (i + 1.0) / 64.0;
Expand Down

0 comments on commit 417a367

Please sign in to comment.