-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stft output frequency bin count doesn't match Stft constructor parameters? #31
Comments
Hi! Regarding the STFT parameters - take a look here at In short, the FFT size can not be smaller than the size of analysis window (so NWaves sets FFT size to 1024 automatically in your case). I guess what you're trying to do is analyze signal in the 1024-samples window and then obtain FFT with lower frequency resolution (256 samples). So essentially, you need to compute 1024-point FFT and then sum values inside each group of 4 adjacent samples. Something like this:
Q1: yes, Y represents power (spectrogram is the sequence of power spectra). Regards, |
Thank you for the detailed reply! |
Hi!
I'm currently using the Stft feature, when i provide these parameters
Stft stft = new Stft( windowSize: 1024, hopSize: 256, window: NWaves.Windows.WindowTypes.Hann, fftSize: 256);
The output spectrums result in a length 513 not 256?
See the image below that displays the number of bins in a single spectrum of the Stft spectrogram
Additionally:
Q1) What is the resulting Y Axis graph representing, is it power?
Q2) The Y values output from the Stft are normalized, how are they normalized? e.g:
The text was updated successfully, but these errors were encountered: