libsndfile / libsamplerate

An audio Sample Rate Conversion library
http://libsndfile.github.io/libsamplerate/
BSD 2-Clause "Simplified" License
600 stars 167 forks source link

Varispeed but preserve pitch #200

Closed Castor215 closed 1 year ago

Castor215 commented 1 year ago

I am trying to implement libsamplerate in an emulator. What I want is for the audio to increase duration when the emulator slows down but preserve pitch. What is happening is that the audio gets lower in pitch when the emulator slows down, which sounds dreadful.

Is it possible to stretch the audio in this way?

erikd commented 1 year ago

If you want to vary the speed without varying the pitch, you need a time stretching library. Sorry libsamplerate does not do what you want.

Is it possible to stretch the audio in this way?

Yes, but not with this library.