I am programming a voice changer (in c++). I need only to change the pitch of the voice. Unfortunately, I absolutely lack theoretical knowledge and hence I could not find information on the Internet :( I am asking after theory (mathematics?) lying under pitch changing. Consider, I already have .wav audiofile converted into array of samples. Thanks in advance!
P.S. After changing the pitch, the duration of the audiofile should remain the same.