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.
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.
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.
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?
"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??)