Using formula on Audio EQ Cookbook I implemented biquad IIR filters in Excel.
As in my previous question Phase Response Function / Plotting in Excel (IIR Filter), Hilmar helped a lot with the phase formula and Robert Britsow Johnson mentioned about unwrapping the response.
Now I'm able to calculate phase response with parametrics and shelvings.
But when I applied allpass filter, there is something wrong with the phase response.
If I apply -360 to formula at the frequencies about 5kHz, response is more like it should be. But I can not apply this to all frequencies. So I tried to change formula with mod of -360 after I subtrack 360.
My first question is; It looks ok but, is it correct?
Secondly; Should I apply this "MOD(phase,-360) to every other filter? Or just to final sum, total phase?
Third one; How can I change the response with wrapped-unwrapped form?
And lastly; I'm summing all phase responses of all filters with simple summation. Is this a correct calculation of final phase response?
Formula;
=IFERROR(MOD((ATAN2(O$17+O$18*COS(Table4[@[w]:[w]])+O$19*COS(2*Table4[@[w]:[w]]);-O$18*SIN(Table4[@[w]:[w]])-O$19*SIN(2*Table4[@[w]:[w]]))-
ATAN2(O$20+O$21*COS(Table4[@[w]:[w]])+O$22*COS(2*Table4[@[w]:[w]]);-O$21*SIN(Table4[@[w]:[w]])-O$22*SIN(2*Table4[@[w]:[w]])))/(PI())*180-360;-360);0)
fc = 1kHz, Q = 1
Coefs are;
B0 0,983640459
B1 -1,998929175
B2 1,016359541
A0 1,016359541
A1 -1,998929175
A2 0,983640459

Would you also check https://dsp.stackexchange.com/questions/84829/how-to-calculate-total-added-gain-after-iir-filter ?
– BugraKezan Oct 08 '22 at 20:29