4.2. Short-Time Fourier Transform¶
4.2.1. Analysis¶
X,fs, ch_names = sp.data.eeg_sample_14ch()
x = X[:,1]
t = np.arange(len(x))/fs
mXt,pXt = sp.stft_analysis(x, winlen=128, overlap=32,window='blackmanharris',nfft=None)
print(mXt.shape, pXt.shape)
4.2.2. Synthesis¶
y = sp.stft_synthesis(mXt, pXt, winlen=128, overlap=32)
print(y.shape)