scipy.signal.ShortTimeFFT.
scipy.signal.ShortTimeFFT.phase_shift#
- property ShortTimeFFT.phase_shift#
If set, add linear phase
phase_shift
/mfft
*f
to each FFT slice of frequencyf
.Shifting (more precisely rolling) an
mfft
-point FFT input byphase_shift
samples 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_shift
is limited to be less thanmfft
.See also
delta_f
Width of the frequency bins of the STFT.
f
Frequencies values of the STFT.
mfft
Length of input for the FFT used
ShortTimeFFT
Class this property belongs to.