IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Audio FFT filtering, audio processing, windowing, zero padding
arniar
post May 31 2010, 21:41
Post #1





Group: Members
Posts: 5
Joined: 31-May 10
Member No.: 81036



I am working on audio compression for hearing aids and I have the following consideration.

In the current implementation, the signal is segmented into 50% overlapping segments of length L. The processing of each segment includes windowing with the Hann-window and zero padding with L zeros. The spectrum is multiplied with filter spectrum with truncated impulse response to prevent temporal aliasing. Finally the resulting spectrum is transformed into the time domain and added to the output signal.

But from the discussion here:

http://www.hydrogenaudio.org/forums/lofive...php/t67700.html

I read:
QUOTE
Also, if you intend on actually modifying the signal between the fft and the ifft, it's best to apply the window both before the fft and after the ifft. You need a "power complementary" window for that. The simplest is sqrt(Hanning), which is just a sine window. Note that you *can't* use a Hamming window in any case.


So, as I see it, there is possibility for a different implementation, but my question is how this can work with the zero padding or is zero padding still necessary? Zero padding with L zeros will double the resulting time domain representation (2L) after the ifft but the window has only size L. Should I drop the zero padding or is there another way?


Go to the top of the page
+Quote Post
Primius
post Jun 1 2010, 01:33
Post #2





Group: Members
Posts: 21
Joined: 11-April 06
Member No.: 29419



You don't need post-windowing, if you make sure that the impulse response of the filter is short enough to avoid temporal aliasing.

Algorithms that filter each frequency bin independently often create filter impulse responses that are temporal aliased.

Pre-windowing is needed to have smooth transitions between two segments with different filters applyed (if the filter doesn't change, you would not even need pre windowing).


(I might be wrong, I just started reading about DSP)

Greetings smile.gif
Go to the top of the page
+Quote Post
Woodinville
post Jun 1 2010, 05:48
Post #3





Group: Members
Posts: 1402
Joined: 9-January 05
From: JJ's office.
Member No.: 18957



The thing to remember is that your original signal is of length 'n', and the impulse response of your filter corresponds to length "m", and therefore the minimum FFT Length is

n+m-1

From all of that, windowing, shift length, etc, all flow.


--------------------
-----
J. D. (jj) Johnston
Go to the top of the page
+Quote Post
arniar
post Jun 1 2010, 09:23
Post #4





Group: Members
Posts: 5
Joined: 31-May 10
Member No.: 81036



Thanks

I will then stick to the zero padding, it looks like a temporal smoothing so therefore I was considering the alternative implementation, that is, if it would give better quality.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd July 2014 - 04:53