STFT and ISTFT
Wednesday, September 17th, 2008Problem: I need to invert a spectrogram to listen to the signal. And I want to do it the best way possible.
Solution: It isn’t all that sophisticated. Here’s a limited implementation of Yang’s ICASSP 2008 solution; which is — surprise surprise — quite nearly the same as the ubiquitous heuristic overlap and add istft.
It’s limited in the following ways:
- The least-squares solution is not implemented. This means that LS solution is available only for regularly spaced frequency bands since in that case LS solution reduces to p=2 solution.
- MATLAB fft/ifft routines are used; and they take care of the P matrix (excess zeros to round to powers of 2).
- The matrix algebra is not exploited — this is a quick and dirty test run.

