tsmvar_phase_vocoder#
- hmc_mir.tsm_tools.tsm_tools.tsmvar_phase_vocoder(x, alignment, L=2048, fs=22050)[source]#
Time stretches the input signal using a phase vocoder according to a given alignment. Uses a synthesis hop size that is one-fourth the value of L.
- 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.
L – the length of each analysis frame in samples
fs – sampling rate
- Returns:
The variable time-stretched signal y