estimateIF_var#

hmc_mir.tsm_tools.tsm_tools.estimateIF_var(S, sr, timestamps)[source]#

Estimates the instantaneous frequencies in an STFT-like matrix when the analysis frames are not evenly spaced.

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

  • sr – sampling rate

  • timestamps – timestamps corresponding to each STFT column (in sec)

Returns:

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