Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform


Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | Finding the main frequency of an input audio signal

There are 22 messages in this thread.

You are currently looking at messages 0 to 10.


Finding the main frequency of an input audio signal - 2007-08-29 17:51:00

What is the best/easiest method to determine the main frequency of the
input audio signal? I am confused by some options (FFT, wavelets) and
I am just looking for a simple one which doesn't have to be too much
theory, but simply works. I still would like to learn something, not
just reuse somebody's solution in part or in whole and not understand
anything, but I wouldn't like to spend more then a day or two learning
the maths and so. Do you have any suggestions regarding this? Even a
simple list of possibilities would be good, but if you have the actual
experiences or links to some good tutorials, that would be great.

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - Richard Owlett - 2007-08-29 18:07:00



w...@yahoo.com wrote:
> What is the best/easiest method to determine the main frequency of the
> input audio signal? I am confused by some options (FFT, wavelets) and
> I am just looking for a simple one which doesn't have to be too much
> theory, but simply works. I still would like to learn something, not
> just reuse somebody's solution in part or in whole and not understand
> anything, but I wouldn't like to spend more then a day or two learning
> the maths and so. Do you have any suggestions regarding this? Even a
> simple list of possibilities would be good, but if you have the actual
> experiences or links to some good tutorials, that would be great.
> 

What is YOUR definition of "best/easiest"?

Why does FFT confuse you?

How do you define "simple"?

You are *ALMOST* asking the "RIGHT" questions.

This answer is *NOT* a put down. !!!!

I'm a fellow newbie who has learned that asking RIGHT question is > 1/2 
the battle.

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - glen herrmannsfeldt - 2007-08-29 19:30:00

w...@yahoo.com wrote:

> What is the best/easiest method to determine the main frequency of the
> input audio signal? 

I think first you have to define "main frequency".

In music, there is a fundamental frequency, where other frequencies
might be multiples of that frequency.  In some cases, the fundamental
might not be as large as some harmonics.  It is said that in some cases
the fundamental might have zero amplitude, yet still be audible.
(That is, the brain figures out that it should be there.)

Maybe you just want the frequency with the most power, though.

-- glen

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - robert bristow-johnson - 2007-08-29 20:40:00

On Aug 29, 8:24 pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> wi...@yahoo.com wrote:
> > What is the best/easiest method to determine the main frequency of the
> > input audio signal?
>
> I think first you have to define "main frequency".
>
> In music, there is a fundamental frequency, where other frequencies
> might be multiples of that frequency.  In some cases, the fundamental
> might not be as large as some harmonics.  It is said that in some cases
> the fundamental might have zero amplitude, yet still be audible.
> (That is, the brain figures out that it should be there.)

because the period of repitiion is still 1/fundamental, even if the
amplitude of the first harmonic is zero (as long as there are enough
other odd harmonics with sufficient amplitude).

> Maybe you just want the frequency with the most power, though.

or a sorta weighted mean or spectral "center of gravity".

but if the OP wants to know the fundamental frequency of a reasonably
harmonic musical note, the thing he/she wants is called a "pitch
detector".

r b-j

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - 2007-08-29 21:29:00

Thanks everyone for answering.

@Richard Owlett
> What is YOUR definition of "best/easiest"?
Can be implemented (including understanding why the implementation
works like that - just the main concepts) in day or two.

> Why does FFT confuse you?
Misunderstanding: I am confused which option to use. There are many -
which is best/easiest in the previous sense?

> How do you define "simple"?
That you don't actually need to know how it works to understand the
main concepts behind it. This is a little vague.

> You are *ALMOST* asking the "RIGHT" questions.
:)

> This answer is *NOT* a put down. !!!!
Got that. Thanks.

> I'm a fellow newbie who has learned that asking RIGHT question is > 1/2
> the battle.
I agree.

@glen
>I think first you have to define "main frequency".
>...
>Maybe you just want the frequency with the most power, though.
The last one would suffice.

@r b-j
> but if the OP wants to know the fundamental frequency of a reasonably
harmonic musical note, the thing he/she wants is called a "pitch
detector".
<
This seems interesting. Do you have any pointers where I can learn
this from (i.e. something you consider a good thing for a start)?

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - Ron N. - 2007-08-29 21:48:00

On Aug 29, 2:51 pm, wi...@yahoo.com wrote:
> What is the best/easiest method to determine the main frequency of the
> input audio signal? I am confused by some options (FFT, wavelets) and
> I am just looking for a simple one which doesn't have to be too much
> theory, but simply works. I still would like to learn something, not
> just reuse somebody's solution in part or in whole and not understand
> anything, but I wouldn't like to spend more then a day or two learning
> the maths and so. Do you have any suggestions regarding this? Even a
> simple list of possibilities would be good, but if you have the actual
> experiences or links to some good tutorials, that would be great.

Well, first you need to define what you mean by the
"main" frequency, since the musical pitch frequency
that a human would recognize may not be the same thing
as any spectral envelope peak.

I have a list on a web page of a bunch of techniques
for frequency estimation which may or may not be useful
depending on your criteria.

  http://www.nicholson.com/rhn/dsp.html

Some methods are easy, some are better at various
criteria.  And you rarely get both unless you have
a highly constrained signal.


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

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - Vladimir Vassilevsky - 2007-08-29 22:25:00

<w...@yahoo.com> wrote in message
news:1...@d55g2000hsg.googlegroups.com...
> What is the best/easiest method to determine the main frequency of the
> input audio signal?

The best and easiest method is to hire the consultant.

> I am confused by some options (FFT, wavelets) and
> I am just looking for a simple one which doesn't have to be too much
> theory, but simply works.

A frequency counter?

> I still would like to learn something, not
> just reuse somebody's solution in part or in whole and not understand
> anything, but I wouldn't like to spend more then a day or two learning
> the maths and so.

Wonderful.

> Do you have any suggestions regarding this? Even a
> simple list of possibilities would be good, but if you have the actual
> experiences or links to some good tutorials, that would be great.

I have all of that. Do you have money?

VLV



______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - Vladimir Vassilevsky - 2007-08-29 22:32:00

"robert bristow-johnson" <r...@audioimagination.com> wrote in message
news:1...@r34g2000hsd.googlegroups.com...
> On Aug 29, 8:24 pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> > wi...@yahoo.com wrote:

> but if the OP wants to know the fundamental frequency of a reasonably
> harmonic musical note, the thing he/she wants is called a "pitch
> detector".

Pitch detector! Magic word! You said it!
Topes! Topezz! Where is Topezzz?

VLV


______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - Rune Allnor - 2007-08-30 00:04:00

On 29 Aug, 23:51, wi...@yahoo.com wrote:
> What is the best/easiest method to determine the main frequency of the
> input audio signal?

A piano. Play the input signal on a speaker and press the tangents
on the piano till you fin a tone which matches the signal.

> I am confused by some options (FFT, wavelets)

Then read a book on the subject, contemplate what you read,
and become less confused.

> and
> I am just looking for a simple one which doesn't have to be too much
> theory, but simply works.

Sure. And I would just love to find that pile of gold everybody
knows is where the ranbow ends.

> I still would like to learn something, not
> just reuse somebody's solution in part or in whole and not understand
> anything,

Maybe you don't want that, but that's a brilliant
way to start, if you want to learn something.

> but I wouldn't like to spend more then a day or two learning
> the maths and so.

You are really something, aren't you? How much maths
can you learn in two days?

> Do you have any suggestions regarding this? Even a
> simple list of possibilities would be good, but if you have the actual
> experiences or links to some good tutorials, that would be great.

I might have one or two suggestions, but they would require
some actual *work* on your part. reading books, working through
the mats, playing with code examples. You have already
excluded all of that from your list of acceptable activities,
so mentioning such options is a mere waiste of time.

Rune

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Finding the main frequency of an input audio signal - Rob - 2007-08-30 03:21:00

On Aug 30, 3:29 am, wi...@yahoo.com wrote:
> This seems interesting. Do you have any pointers where I can learn
> this from (i.e. something you consider a good thing for a start)?

Check for: Autocorrelation, AMDF (average mean difference function),
Peak picking in the FFT is good. Wavelets should work to (but I
have no idea how because I consider them too abstract, but that's just
me)

All of these alas do require some checking of the math, but more
importantly (several years ago when I asked
the group almost the same question, and r b-j said I asked the right
questions :) given the data any of the
above methods supply, you have to do some "smart" interpreting of the
data.

What is considered smart for one type of input signal might not be so
smart for another. In short, all of the above methods will work, but
to work well, the data they supply needs to be "interpreted".

/Rob



______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

| 1 | 2 | 3 | next