Invertible STFT and ISTFT in Python

后端 未结 10 2058
自闭症患者
自闭症患者 2020-12-02 07:57

Is there any general-purpose form of short-time Fourier transform with corresponding inverse transform built into SciPy or NumPy or whatever?

There\'s the pyplot

10条回答
  •  没有蜡笔的小新
    2020-12-02 08:22

    Found another STFT, but no corresponding inverse function:

    http://code.google.com/p/pytfd/source/browse/trunk/pytfd/stft.py

    def stft(x, w, L=None):
        ...
        return X_stft
    
    • w is a window function as an array
    • L is the overlap, in samples

提交回复
热议问题