JorenSix / TarsosDSP

A Real-Time Audio Processing Framework in Java
http://0110.be/tag/TarsosDSP
GNU General Public License v3.0
1.97k stars 472 forks source link

Time-stretching (WSOLA) incorrect length output #206

Open Gilianp opened 2 years ago

Gilianp commented 2 years ago

When using time-stretching (WSOLA algorithm) the lenght of output have incorrect size, generating an audio with a length of a few milliseconds less, and other times with a few milliseconds more. For example. An audio that is 1000 milliseconds long, when time-stretched with tempo=0.5, should generate an audio that is 2000 milliseconds long, but actually generates an audio that has 2025 ms, sometimes 1980 ms. This varies depending on the parameters and the audio lenght. The correct size is rarely achieved. Any suggestion on how to fix?