Skip to content

Commit

Permalink
Single Pole/Zero bugfix
Browse files Browse the repository at this point in the history
This fixes a bug reported already in the original DSPFilters:
vinniefalco/DSPFilters#29 and
confirmed for the JAVA port berndporr/iirj#27.
That's now fixed.
  • Loading branch information
berndporr committed Oct 5, 2023
1 parent a6003d2 commit 379d697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iir/Biquad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ namespace Iir {
const double a0 = 1;
const double a1 = -pole.real();
const double a2 = 0;
const double b0 = -zero.real();
const double b1 = 1;
const double b0 = 1;
const double b1 = -zero.real();
const double b2 = 0;

setCoefficients (a0, a1, a2, b0, b1, b2);
Expand Down

0 comments on commit 379d697

Please sign in to comment.