scipy.signal.ShortTimeFFT.
scipy.signal.ShortTimeFFT.phase_shift#
- property ShortTimeFFT.phase_shift#
If set, add linear phase
phase_shift/mfft*fto each FFT slice of frequencyf.Shifting (more precisely rolling) an
mfft-point FFT input byphase_shiftsamples results in a multiplication of the output bynp.exp(2j*np.pi*q*phase_shift/mfft)at the frequency q *delta_f.The default value 0 ensures that there is no phase shift on the zeroth slice (in which t=0 is centered). No phase shift (
phase_shift is None) is equivalent tophase_shift = -mfft//2. In this case slices are not shifted before calculating the FFT.The absolute value of
phase_shiftis limited to be less thanmfft.See also
delta_fWidth of the frequency bins of the STFT.
fFrequencies values of the STFT.
mfftLength of input for the FFT used
ShortTimeFFTClass this property belongs to.