# Change pitch of a wav file without changing the Sample rate?

I'm creating a Python library I call PAL, (Python Audio Library) and I need some help. What ways are there to change the pitch of a wav file without changing the sampling rate? I have complete access to the data contained in said file as numbers so if there is an equation or method that would work please let me know. To recap

• Change the pitch

• Don't touch the sampling rate

• I can mathematically change the samples freely

• As I said in the question, this is with a .wav file. – CoderBoy Jun 15 '18 at 0:11
• Hello. Voting to migrate this question to dsp.stackexchange as it is related to signal processing and not to sound design. – audionuma Jun 15 '18 at 5:49
• Why can't there just be one stack exchange where all questions are allowed -.- – CoderBoy Jun 15 '18 at 17:07
• @CoderBoy Would you even want to read such a stack? It would be impossible to find anything about audio or DSP among the Mathematics and Interpersonal Skills questions! I can't even keep up with just the Mathematics stack. I have to filter it - it's just too much traffic. – Todd Wilcox Jun 15 '18 at 17:53
• @CoderBoy my god, that would be AWFUL. – user36520 Jun 29 '18 at 20:35