my_stft#
- hmc_mir.tsm_tools.tsm_tools.my_stft(x, N, hop_length, window)[source]#
A custom implementation of the STFT that allows for non-integer hop lengths (in samples).
- Parameters:
x – the input audio waveform
N – the FFT size
hop_length – the hop size specified in samples, can be a non-integer
window – the window to apply to the analysis frames
- Returns:
X – the computed STFT matrix
frame_offsets – a list specifying the offsets (in samples) of each analysis frame