paulnasca/paulstretch_cpp

First few seconds at any stretch have intense distortion

Opened this issue · 1 comments

First off, this processor is amazing. My only issue with it so far has been the following:

1.) load up mp3
2.) set stretch to ~ 10.34x
3.) hit play (from beginning)
4.) listen to next 10 seconds of super-high frequency distortion. This sound fades out as you get to the beginning of the actual music.

I'm not sure what would cause that distortion.. perhaps an error when attempting to re-sample data at the beginning of the song? zero volume data or maybe a lack of data to read causing the processor to re-sample and amplify erroneous data?

I could just output the stretched version of the song and chop off the distortion in the beginning, but it would be awesome (mainly for experimentation) to not get blasted by that distortion for a minute, should I turn the stretch up to ~800x.

If you have time to look into it, I'd really appreciate it! Thanks!

Edit:
I experienced this with the default settings for http://sourceforge.net/projects/hypermammut/files/paulstretch/2.2/paulstretch_win32-2.2-2.zip/download

i'm 5 years late, but i'm going to guess your file has non-audio data in the beginning (cover image, itunes crap, etc)

if it still does it to a wav, then it might be something else... in which case you could purposely add silence in the beginning