FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2006, 01:58 PM
Amanda Robin
Guest
 
Posts: n/a
Default Tracking one frequency

Please excuse this beginner question.

I have about a minute's worth of sound data taken by a microphone and
recorded into a file.

The sound field has one frequency of interest and some random noise (at
a lower magnitude than the random noise). My sample rate is about 6x the
frequency of interest.

I want to show the change in the frequency of interest alone.

I am thinking to perform an FFT on segments of the data, say, one
second's worth at a time, and record the peaks at the frequency, ending
up with a rough plot of time vs magnitude.

Is there a name for this kind of plot?

Also, any recommendations on whether I should overlap the segments and
whether to use a particular window function?

Thanks in advance for any suggestions,

Amanda
Reply With Quote
  #2 (permalink)  
Old 04-12-2006, 02:59 PM
john
Guest
 
Posts: n/a
Default Re: Tracking one frequency


Amanda Robin wrote:
> Please excuse this beginner question.
>
> I have about a minute's worth of sound data taken by a microphone and
> recorded into a file.
>
> The sound field has one frequency of interest and some random noise (at
> a lower magnitude than the random noise). My sample rate is about 6x the
> frequency of interest.
>
> I want to show the change in the frequency of interest alone.
>
> I am thinking to perform an FFT on segments of the data, say, one
> second's worth at a time, and record the peaks at the frequency, ending
> up with a rough plot of time vs magnitude.
>
> Is there a name for this kind of plot?
>
> Also, any recommendations on whether I should overlap the segments and
> whether to use a particular window function?
>
> Thanks in advance for any suggestions,
>
> Amanda


If you plot all of the FFT bins as a row for each time, forming a 2D
image, it's called a spectrogram. It is common to use a data window and
a 50% overlap. If you have Matlab, type 'help spectrogram' for details.

John

John

Reply With Quote
  #3 (permalink)  
Old 04-12-2006, 03:05 PM
S L
Guest
 
Posts: n/a
Default Re: Tracking one frequency

Or specgram"....depending on the MATLAB version.

~ Snigdha L


john wrote:
> Amanda Robin wrote:
> > Please excuse this beginner question.
> >
> > I have about a minute's worth of sound data taken by a microphone and
> > recorded into a file.
> >
> > The sound field has one frequency of interest and some random noise (at
> > a lower magnitude than the random noise). My sample rate is about 6x the
> > frequency of interest.
> >
> > I want to show the change in the frequency of interest alone.
> >
> > I am thinking to perform an FFT on segments of the data, say, one
> > second's worth at a time, and record the peaks at the frequency, ending
> > up with a rough plot of time vs magnitude.
> >
> > Is there a name for this kind of plot?
> >
> > Also, any recommendations on whether I should overlap the segments and
> > whether to use a particular window function?
> >
> > Thanks in advance for any suggestions,
> >
> > Amanda

>
> If you plot all of the FFT bins as a row for each time, forming a 2D
> image, it's called a spectrogram. It is common to use a data window and
> a 50% overlap. If you have Matlab, type 'help spectrogram' for details.
>
> John
>
> John


Reply With Quote
  #4 (permalink)  
Old 04-12-2006, 05:59 PM
Ron N.
Guest
 
Posts: n/a
Default Re: Tracking one frequency

Amanda Robin wrote:
> Please excuse this beginner question.
>
> I have about a minute's worth of sound data taken by a microphone and
> recorded into a file.
>
> The sound field has one frequency of interest and some random noise (at
> a lower magnitude than the random noise). My sample rate is about 6x the
> frequency of interest.


How much lower is the noise? Is any of it at a closely adjacent
frequency to you signal of interest?

> I want to show the change in the frequency of interest alone.


What are your resolution needs for the frequency of your signal
of interest and the changes in frequency.

> I am thinking to perform an FFT on segments of the data, say, one
> second's worth at a time, and record the peaks at the frequency, ending
> up with a rough plot of time vs magnitude.
>
> Is there a name for this kind of plot?


Spectrogram.

> Also, any recommendations on whether I should overlap the segments and
> whether to use a particular window function?


If the noise and adjacent interference are low enough, you might
try phase vocoder analysis. This can give a much higher frequency
resolution than by using a non-interpolated FFT alone. Maybe
try a simple von Hann window and a 50% overlap for starters.
Narrower windows and more overlap seems to tracks larger frequency
excursions better, wider windows and less overlap oftens shows
more frequency resolution for more stable sinusoids.


IMHO. YMMV.
--
rhn A.T nicholson d.0.t C-o-M

Reply With Quote
  #5 (permalink)  
Old 04-12-2006, 06:03 PM
john
Guest
 
Posts: n/a
Default Re: Tracking one frequency


Ron N. wrote:
> Amanda Robin wrote:
> > Please excuse this beginner question.
> >
> > I have about a minute's worth of sound data taken by a microphone and
> > recorded into a file.
> >
> > The sound field has one frequency of interest and some random noise (at
> > a lower magnitude than the random noise). My sample rate is about 6x the
> > frequency of interest.

>
> How much lower is the noise? Is any of it at a closely adjacent
> frequency to you signal of interest?
>
> > I want to show the change in the frequency of interest alone.

>
> What are your resolution needs for the frequency of your signal
> of interest and the changes in frequency.
>
> > I am thinking to perform an FFT on segments of the data, say, one
> > second's worth at a time, and record the peaks at the frequency, ending
> > up with a rough plot of time vs magnitude.
> >
> > Is there a name for this kind of plot?

>
> Spectrogram.
>


Yeah, but technically a spectrogram is a 2-D plot (image). What the OP
described is a 1-D plot of the row peaks in a spectrogram.

John

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT: flexlm license tracking Chris Briggs Verilog 4 04-14-2010 07:19 PM
BPSK CORDIC tracking [email protected] FPGA 1 02-06-2008 07:15 AM
OT : Bug/Issue tracking systems [email protected] VHDL 10 01-05-2007 08:36 PM
Tracking down HardWired History Bill Cox FPGA 9 01-17-2005 10:17 PM


All times are GMT +1. The time now is 03:10 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved