Skip to content

Commit

Permalink
fix phase inversion of odd order high pass filters (#693)
Browse files Browse the repository at this point in the history
This is a known issue with DSPFilters:
vinniefalco/DSPFilters#29
and has been fixed in iir1 and iirj:
berndporr/iir1@379d697
berndporr/iirj#27
  • Loading branch information
myd7349 authored Jan 7, 2024
1 parent 1c2fde9 commit 4b494e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/DSPFilters/source/Biquad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ void BiquadBase::setOnePole (complex_t pole, complex_t zero)
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 4b494e2

Please sign in to comment.