tsmvar_overlap_add#

hmc_mir.tsm_tools.tsm_tools.tsmvar_overlap_add(x, alignment, L=220, fs=22050)[source]#

Time stretches the input signal using the overlap-add method according to a given alignment. Uses a synthesis hop size that is half the value of L.

Parameters:
  • x – the input signal (orchestra only)

  • 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.

  • L – the length of each analysis frame in samples

  • fs – sample rate of input signal

Returns:

The variable time-stretched signal y