estimateIF#

hmc_mir.tsm_tools.tsm_tools.estimateIF(S, sr, hop_samples)[source]#

Estimates the instantaneous frequencies in a STFT matrix.

This function is not actually used in our custom implementation of the phase vocoder – it is included here as a contrast to estimateIF_var() below.

Parameters:
  • S – the STFT matrix, should only contain the lower half of the frequency bins

  • sr – sampling rate

  • hop_samples – the hop size of the STFT analysis in samples

Returns:

A matrix containing the estimated instantaneous frequency at each time-frequency bin. This matrix should contain one less column than S.