tsm_phase_vocoder#
- hmc_mir.tsm_tools.tsm_tools.tsm_phase_vocoder(x, alpha=1.0, L=2048, sr=22050)[source]#
Time stretches the input signal using the phase vocoder method.
Uses a synthesis hop size that is one-fourth 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
sr – sampling rate
- Returns:
the time-stretched signal y.