FFT and guitar not working right

In summary, the fft does not work when you play a note on a guitar because the data does not have a fundamental period that's a multiple of the length of the sequence. If you try to analyse a sequence that doesn't satisfy that requirement, you will get all sorts of artefacts at frequencies that are not part of the original waveform.
  • #1
btb4198
572
10
Why is it that my FFT does not work when I play a note on a guitar ? I even tried audacity and it did not work .
Is there some thing else beside a fft That I can use that can work for a guitar ? So if I play a C I and the program to get me the right frequency that is being played . My fft and audacity were both way off.
 
Engineering news on Phys.org
  • #2
I don't think it's the tool that's wrong here. I think it's what you are doing with it. In principle, you should be able to analyse a time function in terms of its frequency components but you have to do it right.
To use an fft utility, the data needs either to have a fundamental period that's a multiple of the length of the sequence or you have to window the data. Remember, a Discrete Fourier Transform assumes that the sequence repeats itself. If you try to analyse a sequence that doesn't satisfy that requirement, you will get all sorts of artefacts at frequencies that are not part of the original waveform. You will be getting harmonics of the data sequence repeat rate as well as / instead of the frequency components that you expect to find.

Wiki has an introduction to the process.
 
  • #3
ok I tried to do it with a saw tooth wave and it still does not work. It seem to only work for sinewave

also
sophiecentaur, I tried to use a window function but that did not help. I used Audacity to generate a pluck and then I only pick of some the points and not all of them and I did a fft in Audacity and it was not close. there was no 87 Hz.
Also I still so not get how window function would help.
 
  • #4
btb4198 said:
ok I tried to do it with a saw tooth wave and it still does not work. It seem to only work for sinewave

also
sophiecentaur, I tried to use a window function but that did not help. I used Audacity to generate a pluck and then I only pick of some the points and not all of them and I did a fft in Audacity and it was not close. there was no 87 Hz.
Also I still so not get how window function would help.
Is it something obvious like the way you are doing your original sampling? (i.e. wrong or missing Nyquist filter or under-sampling ). What happens if you cut out the initial transients?
How do guitar tuner apps work? Probably not with fft.
How does Audacity 'generate a pluck'? Perhaps the simulation is at fault rather than the analysis.
 
  • #5
It looks right . Please see the attach picture. so it a Pluck at 60 Hz..
 

Attachments

  • Physics1.png
    Physics1.png
    31.8 KB · Views: 522
  • #6
it also sounds right please listen to the attachments
 

Attachments

  • Pluck.zip
    15.9 KB · Views: 250
  • #7
but the fft is way off please see attach pic.
Frequency (Hz) Level (dB)
86.132813 -59.651352
172.265625 -36.878502
258.398438 -30.400234
344.531250 -35.905823
430.664063 -45.633568
516.796875 -38.646156
602.929688 -43.637161
689.062500 -35.162346
775.195313 -27.670515
861.328125 -32.256226
947.460938 -41.441525
1033.593750 -33.528790
1119.726563 -37.669998
1205.859375 -41.013893
1291.992188 -32.503139there is not 60hz
 

Attachments

  • graph.png
    graph.png
    11.3 KB · Views: 454
  • #8
The highest component is at 258.3. That's pretty near 261 (Middle C)
What does your FFT tell you when you put in a 261Hz sine wave?
 
  • #10
also just to do it and using that same site:
I did a sawthooh wave at 261 hz and my fft came up with 1566.5405Hz
 

What is FFT and how does it relate to guitar sound?

FFT stands for Fast Fourier Transform, which is a mathematical algorithm used to analyze the frequency content of a signal. In the context of guitar sound, FFT is often used to identify and isolate specific frequencies in the sound produced by the guitar.

Why does my guitar sound distorted when using FFT?

FFT is a powerful tool for analyzing sound, but it is not perfect. When using FFT to isolate specific frequencies in a guitar sound, it is possible to inadvertently distort the sound. This can happen if the FFT settings are not optimized for the guitar sound or if the guitar's signal is too loud or too quiet.

How can I fix issues with FFT and my guitar sound?

If you are experiencing issues with FFT and your guitar sound, there are a few things you can try. First, make sure your FFT settings are optimized for guitar sound. You may also need to adjust the guitar's volume or the sensitivity of the FFT tool. If the problem persists, you may need to consult a professional for further assistance.

Is FFT the only way to analyze guitar sound?

No, FFT is not the only method for analyzing guitar sound. There are other tools and techniques, such as spectrum analyzers and equalizers, that can also be used to analyze and manipulate guitar sound. It is important to experiment and find the best approach for your specific needs.

Can FFT help me improve my guitar playing?

While FFT is primarily used for analyzing sound, it can also be a useful tool for improving guitar playing. By using FFT to isolate specific frequencies, you can identify areas of your playing that may need improvement and work on them more effectively. However, it is important to also practice and develop your skills through traditional methods in addition to using FFT.

Similar threads

Replies
6
Views
2K
  • STEM Educators and Teaching
Replies
3
Views
1K
Replies
6
Views
978
  • Art, Music, History, and Linguistics
Replies
13
Views
496
Replies
10
Views
481
  • Electrical Engineering
Replies
9
Views
2K
  • Electrical Engineering
Replies
1
Views
934
  • Electrical Engineering
3
Replies
85
Views
10K
  • Electrical Engineering
Replies
4
Views
2K
  • Electrical Engineering
Replies
29
Views
6K
Back
Top