Skip to content

Commit 4b494e2

Browse files
authored
fix phase inversion of odd order high pass filters (#693)
This is a known issue with DSPFilters: vinniefalco/DSPFilters#29 and has been fixed in iir1 and iirj: berndporr/iir1@379d697 berndporr/iirj#27
1 parent 1c2fde9 commit 4b494e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/DSPFilters/source/Biquad.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ void BiquadBase::setOnePole (complex_t pole, complex_t zero)
143143
const double a0 = 1;
144144
const double a1 = -pole.real();
145145
const double a2 = 0;
146-
const double b0 = -zero.real();
147-
const double b1 = 1;
146+
const double b0 = 1;
147+
const double b1 = -zero.real();
148148
const double b2 = 0;
149149

150150
setCoefficients (a0, a1, a2, b0, b1, b2);

0 commit comments

Comments
 (0)