Skip to content

Commit 1ec998a

Browse files
committed
Improved
1 parent b3d247b commit 1ec998a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/yup_dsp/filters/yup_ButterworthFilter.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ class ButterworthFilter : public BiquadCascade<SampleType, CoeffType>
225225
void getPolesZeros (ComplexVector<CoeffType>& poles,
226226
ComplexVector<CoeffType>& zeros) const override
227227
{
228+
poles.clear();
229+
zeros.clear();
230+
231+
for (const auto& coeffs : coefficients)
232+
extractPolesZerosFromSecondOrderBiquad (coeffs.b0, coeffs.b1, coeffs.b2, coeffs.a0, coeffs.a1, coeffs.a2, poles, zeros);
228233
}
229234

230235
private:

0 commit comments

Comments
 (0)