I am trying to change the rate of a sound file played through AVAudioPlayer. It works, but there are significant artifacts, especially when I slow down the rate. I'm happy that the rate change maintains the same pitch but it seems to have trouble, especially with sustained notes.
It seemed like the rate change was working pretty well until I tried it with higher quality sounds that had been equalized, compressed, and mastered. I'm concerned that the AVAudioPlayer rate change can't deal with the higher quality.
I'm using .wav files with a sample rate of 48kHz and 16 bits per sample.
I've also looked into ZTX Time Stretching and Pitch Shifting, formerly known as Dirac LE, but haven't been able to acquire a license for the software yet. However, I did try loading the files into iPhone apps that use the ZTX technology and it had similar issues.
Any help or suggestions would be appreciated!