tsmvar_hybrid#

hmc_mir.tsm_tools.tsm_tools.tsmvar_hybrid(x, alignment, sr=22050)[source]#

Time stretches the input signal using a hybrid method that combines overlap-add and phase vocoding. The time stretch factor is specified at each time instant by the provided alignment.

Parameters:
  • x – the input signal

  • alignment – a 2xN matrix specifying the desired alignment in seconds. The first row indicates the timestamp in the input signal, and the last row indicates where in the output signal the instant should occur.

  • sr – sampling rate

Returns:

The variable time-stretched signal y