DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

Periodic?

Started by lsl1510 ●September 18, 2002
Hi to all!
Lots of questions coming up... okay, lemme make a final try to 
clarify myself.

Firstly the most crucial point for misunderstanding (and 
controversy!). For doing any frequency domain analysis, where one 
is required to take FFT, one always (almost!) breaks the time 
domain wavform into small chunks, frames (20-30 msec duration) and 
then after windowing (ususally with 50% overlap, to smoothen the 
inter-frame differences) takes its FFT. The subsequent frequency 
domain analysis is then done on a frame-by-frame basis. Finally at 
the synthesis time, we take IFFT and go for overlapping windows 
(same usual 50%, with same reason) to finally construct the output 
time waveform. Different types of windows are employed for the 
analysis and synthesis overlap purpose, popular ones being 
hanning, hamming, sin, cos and kaiser-bessel.

Comments: One of the basic assumption when we take FFT for a 't' 
time duration waveform is its pseudo-stationarity during that 't' 
duration. In above mentioned method, FFT of a small time-frame 
(20-30 msec) implies pseudo-stationarity for that duration, which 
is a widely accepted assumption for speech/audio analysis. 
Obviously we can't generally assume this stationarity for lengthy 
wav files spanning over a large time duration.

Now comes the question, why did I then float that suggestion. The 
answer to that lies in the original question asked by Serene in 
his very first mail of this thread. Here is a verbatim copy of 
that :

On Wed, 18 Sep 2002 lsl1510 wrote :
>Hi,
>I am currently working on an audio Wav file. I would like to
>check
>whether it is periodic and further extract the fundamental
>frequency
>of the file in Matlab. Does anyone knows the algorithm or codes
>to do
>that?
>Serene

Now either in speech or in audio, where we do analysis 
frame-by-frame, there is no point in asking if an audio 'wav file' 
is periodic or not... Few portions (frames) of it can be periodic 
(with different periodicities!), but periodicity of the 'whole wav 
file' is, at least, not common. So when I first read this mail, 
this doubt flashed in my mind... The only possibility appeared to 
me was that the file is small and contains heavy tonal contents, 
which 'can' make 'whole' of the file more like periodic
(with same 
periodicity parameters throughout!). This possibility also permits 
to assume the pseudo-stationarity for the full wav file (though I 
again say that this assumption is largely invalid for commonly 
encountered audio files!).
So with this thing in mind, I raised that suggestion of taking 
single FFT for whole wavfile. I know that I shud have made this 
point clear and avoided many questions... but that's how it 
went.

I hope this time I have clarified myself... If one still thinks 
otherwise, I giveup !! :-)

regards,
Peeyush.

P.S. (Disclaimer!) At many places above frame size as 20-30 msec. 
It need not be in that range always and can vary depending on 
different standards and protocols.
	
Peeyush-

Thanks for your explanation.  You are so dedicated to the group and its
knowledge
that my day has started brighter.

> P.S. (Disclaimer!) At many places above frame size
as 20-30 msec.
> It need not be in that range always and can vary depending on
> different standards and protocols.

The analysis period typically is "data dependent" and chosen such that
periodicity in
that amount of data will not change much.  For example for radar data it might
be a
few usec to 1 msec, for speech data it might be 10 msec to 20 msec, etc.

Jeff Brower
DSP sw/hw engineer
Signalogic