You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the nearest divisor of len(cpp_stft) however then I get this error -
File ".\plotTest.py", line 57, in <module>
validateSTFT(inputAudioFile, inputBinaryFile)
File ".\plotTest.py", line 41, in validateSTFT
cpp_stft = cpp_stft[:,0::2] + cpp_stft[:,1::2]*1j
ValueError: operands could not be broadcast together with shapes (290,257) (290,256)```
when n_fft = 512
n_hfft = 257
since STFT is in complex domian, view as double type array, stft[number_of_frame, 257*2]
and in the memory sequence of data is : real imag real imag
so, to convert into complex type cpp_stft[:,0::2] + cpp_stft[:,1::2]*1j. And it seems one imaginary axis is missing.
You have this line in the validation notebook -
cpp_stft = cpp_stft.reshape((int(len(cpp_stft)/514), 514))
How do you get the number 514?
Thank you!
The text was updated successfully, but these errors were encountered: