I am new in this forum, I begin in audio processing and to top it all, I am French: sorry for my english.
I try to convert FIR filter with linear phase, into one with the same magnitude but minimum phase.
I made an algo from this document, in the hilbert transform description
http://www.hpl.hp.com/personal/Niranjan ... nPhase.pdf
my algo is from this formula (may be misinterpreted):
teta = -j* DFT ( sign * IDFT (log (DFT(x[n])) ) (=atan (Im/Re) of the complex array result)
Then i take the complexe valu formed by the initial magnitude and this angle in the polar form, and make a IFFT to get impulse response.
First try with a simple Windowed-Sinc highpass FIR, the phase reponse look good, but seems to be scaled less than 25 times the value of a comparable IIR filter (approximatly).
After applying this factor, i get a perfect minimum phase version of the linear phase filter: exact magnitude and all left coef =0.
Second try, with a dirac with a random linear phase equalization.
Now i get a impulse with the same amplitude but not completly minimum phase: left coef are not all zero.
Phase seems to have been delayed but not enough.
It also appears that it does not depend on the previous coefficient.
Here some picture that tell best than my english
Good
http://avielbaz.free.fr/images_forum/fir1.png
http://avielbaz.free.fr/images_forum/ht1.png
Problem
http://avielbaz.free.fr/images_forum/fir2.png
http://avielbaz.free.fr/images_forum/ht2.png
(sorry for the url writting it doesn t work before 5 post)
Since i am realy a beginner, this problem may make you laugh.
but...
Cheers,
Avi
