05-25-2016 01:17 PM - edited 05-25-2016 01:21 PM
Hello,
I have been having trouble understanding the numeric output of the STFT vi (the STFT vi in the advanced sig processing toolkit yields same results). When the FFT of a plucked guitar string is graphed and compared to the STFT, the harmonics seem to be roughly similar, despite a significant difference in the amplitude.
Assuming this is normal, my concern is that when i try to look at a bin of the STFT, it doesn't remotely resemble the output of the STFT / FFT. Does anyone know why this might be happening? Is it with my STFT settings?
I have read something referencing the STFT vi outputting coefficients, though i can't seem to make any sense of them.
Thanks! & see pics below for an pictures of what i'm talking about.
STFT Results
FFT Results
Indexed row array of STFT vi output (i expected this to resemble one of the two graphs above)
The part of the VI that i'm indexing.
05-26-2016 06:22 AM
By looking at your STFT, I would suggest following.
Please remove DC offset & Set "dB on" for STFT.
I could not try your VI because you have not attached the data file.
05-26-2016 08:06 AM
Thanks for the response, Haristhota!
The NI forums won't allow me to attach a .wav file so I uploaded it to dropbox:
https://www.dropbox.com/s/deqixhjww5ymojy/PluckedString.wav?dl=0
05-26-2016 08:54 AM
I just quickly made it. It could be useful.
05-26-2016 09:44 AM - edited 05-26-2016 09:45 AM
This is interseting and will definitely prove to be useful. I like how you filtered the base frequency!
However, I'm still stuck. The indexed data from the output of the spectrogram still seems wrong and i'm unsure as to why.
These three graphs should resemble each other but they don't. The left two (STFT & FFT) are correct but they very right graph (Indexed STFT) doesn't resemble what the other two graphs. Any thoughts on why? and how i could manipulate the indexed data such that it reads correctly?
thanks again!
05-27-2016 12:08 AM
"These three graphs should resemble each other but they don't"
I don't think so. even i am not very sure about that.
Since your getting half of the frequency bins in X axis of the indexed array component wich is plotted against "something" (Amplitude??)