Programmatically increase the pitch of an array of audio samples
Hello kind people of the audio computing world, I have an array of samples that respresent a recording. Let us say that it is 5 seconds at 44100Hz. How would I play this back at an increased pitch? And is it possible to increase and decrease the pitch dynamically? Like have the pitch slowly increase to double the speed and then back down. In other words I want to take a recording and play it back as if it is being 'scratched' by a d.j. Pseudocode is always welcomed. I will be writing this up in C. Thanks, EDIT 1 Allow me to clarify my intentions. I want to keep the playback at 44100Hz and so