Identifying Fundamental Frequencies

In summary, the fundamental frequencies of a vibrating string can be estimated from a power spectrum plot, and some of their harmonics can be detected. However, there is no guarantee that every peak in the graph corresponds to a harmonic.
  • #1
roam
1,271
12

Homework Statement



I have made a plot of a given .wav file in Matlab. The problem asks: find the fundamental frequencies of the 3 vibrating strings, and identify some of their harmonics.

Homework Equations


3. The Attempt at a Solution [/B]

So I made a Matlab plot of the power spectrum over the range 0 to 2000 Hz (the range we are required to plot):

Z0falcG.jpg


So how can I identify the fundamental frequencies using this plot (or by any other method)? And what would be their "harmonics"?

Any explanation would be greatly appreciated.
 
Physics news on Phys.org
  • #2
How would you approach the problem if there was one vibrating string? What is charachteristic for the fundamental frequency of a string?
 
  • #3
Orodruin said:
How would you approach the problem if there was one vibrating string? What is charachteristic for the fundamental frequency of a string?

That is exactly my question. How would you approach this problem? I was told that the vibrating strings should have fundamental frequencies of around 440, 523 and 698 Hz. But how can we see that from the graph?

P. S. the .wav file I am plotting is a digitized recording of a three note chord being played on a piano.
 
  • #4
Did you actually look at the graph and try to identify the resonant frequencies?
 
  • Like
Likes roam
  • #5
Thank you, yes the first resonance peak is at 440 Hz, the second one is at 523 Hz, and the third one is at 698 Hz.

There is also a fourth peak in the graph at ##881 \ Hz##. Is it valid to say that this is the second harmonic of the fundamental frequency ##439.8 \ Hz,## since ##881/2 \approx 440##?

I also identified a few other overtones of the 3 fundamental frequencies, but they are only approximately related to the fundamental frequency by a factor of N (= integer).
 
  • #6
roam said:
Thank you, yes the first resonance peak is at 440 Hz, the second one is at 523 Hz, and the third one is at 698 Hz.

There is also a fourth peak in the graph at ##881 \ Hz##. Is it valid to say that this is the second harmonic of the fundamental frequency ##439.8 \ Hz,## since ##881/2 \approx 440##?

Yes, this is where you expect the first overtone to be. In general, the overtones for an oscillating string are expected to be located at integer multiples of the fundamental frequency.

roam said:
I also identified a few other overtones of the 3 fundamental frequencies, but they are only approximately related to the fundamental frequency by a factor of N (= integer).
Just looking at the diagram, I would say that the correspondence to integer multiples of the fundamental frequencies is pretty good. There are many factors which could result in not getting the exact corresponding values, including rounding errors, non-ideal strings, etc.

I would say every single peak in the diagram can be directly related to one of the fundamental frequencies.
 
  • Like
Likes roam
  • #7
Thank you so much for the explanation, it makes perfect sense now.
 
  • #8
Now that you've got your answers, I thought I might add some obiter dictum.
I don't know how you got the figures for the frequencies you have detected, but IMO you can't believe everything you see on a graph like this. Putting aside the resolution of the graphic and your ability to interpolate the axis scales, the mathematical calculations on which it is based are not exact. Depending on your sampling frequency and the number of terms in your transform, 440 Hz may not be one of the possible frequencies and the peak at 440 has to be shared between say 439.5 and 441.4.
Then the duration of your sample and the window function you use causes more smearing over other frequencies.

So I had thought to suggest, the one reliable feature of the data would be the ratio of the harmonics. As far as I understand it, harmonics are mathematically defined to be exactly 2x, 3x, 4x etc of the fundamental frequency.
But I thought I'd better check! This is sampled from a piano and sure enough harmonics of piano notes are not necessarily true harmonics! (Inharmonicity in musical instruments.)

So there's nothing you can bet your life on! I expect these days you can use many more sample points, calculate more accurately and get things more nearly ideal than I could with much slower computers, but there are inherent limitations which can't be removed entirely.
 
  • Like
Likes roam

Related to Identifying Fundamental Frequencies

1. What is the definition of fundamental frequency?

The fundamental frequency is the lowest and most dominant frequency of a periodic waveform. It is also known as the first harmonic and is responsible for the perceived pitch of a sound.

2. How is fundamental frequency measured?

Fundamental frequency can be measured using a frequency analyzer or a spectrum analyzer. These tools can analyze the sound waves and identify the dominant frequency, which is the fundamental frequency.

3. What is the relationship between fundamental frequency and pitch?

The fundamental frequency is directly related to the perceived pitch of a sound. The higher the fundamental frequency, the higher the perceived pitch. This is because the fundamental frequency determines the rate at which the sound wave repeats itself, which is perceived as pitch by the human ear.

4. How does the fundamental frequency differ from overtones and harmonics?

Overtones and harmonics are frequencies that are multiples of the fundamental frequency. They contribute to the overall timbre or quality of a sound, while the fundamental frequency determines the pitch. The fundamental frequency is always the lowest frequency, while overtones and harmonics are higher frequencies.

5. Why is identifying fundamental frequency important in music and speech?

Identifying the fundamental frequency is important in music and speech because it determines the perceived pitch of a sound. In music, it is essential for creating melodies and harmonies, while in speech it is crucial for conveying emotions and meaning through intonation. Understanding and manipulating fundamental frequency can greatly enhance the quality of music and speech.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
10
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
771
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
Replies
18
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • General Math
Replies
1
Views
765
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
Back
Top