06-18-2008 03:09 AM - edited 06-18-2008 03:12 AM
06-19-2008 07:48 AM
06-19-2008 08:32 AM
You should be able to use a for loop.
Do 34 times
Get array subset from i*256 to i*256+512
do FFT on subset
autoindex out the fft of the loop.
you will be left with 34 ffts that represent your STFT.
Paul
06-22-2008 12:25 AM
06-23-2008 07:44 AM
I think you were very close. See the modifier stft. You had an array of waveforms (freq vs time) you unbundle the Y data to get a 2d array of FFT amplitudes. See the attached modified vi.
Paul
07-02-2008 12:19 AM
07-02-2008 08:02 AM
Most likely the difference is that you are not returning the results in dB (boolean input) as for the 2/n+1 I thought that it returns 2/n but I am not sure if I am right. One code improvement would be to use the array size to determine the 34 and 256 values instead of using constants. Your algorithm would be more flexable to handle diferent input lengths for the stft.
Paul
07-04-2008 02:21 AM - edited 07-04-2008 02:23 AM