tsm_overlap_add#

hmc_mir.tsm_tools.tsm_tools.tsm_overlap_add(x, alpha=1.0, L=220)[source]#

Time stretches the input signal using the overlap-add method.

Uses a synthesis hop size that is half the value of L. Note that this implementation allows for a non-integer analysis hop size (in samples), which ensures that the time-scale modification factor is exactly as specified.

Parameters:
  • x – the input signal

  • alpha – the time stretch factor, which is defined as the ratio of the synthesis hop size to the analysis hop size

  • L – the length of each analysis frame in samples

Returns:

the time-stretched signal y