1
$\begingroup$

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

$\endgroup$

migrated from sound.stackexchange.com Jun 19 '18 at 6:37

This question came from our site for sound engineers, producers, editors, and enthusiasts.

  • $\begingroup$ As I said in the question, this is with a .wav file. $\endgroup$ – CoderBoy Jun 15 '18 at 0:11
  • 1
    $\begingroup$ Hello. Voting to migrate this question to dsp.stackexchange as it is related to signal processing and not to sound design. $\endgroup$ – audionuma Jun 15 '18 at 5:49
  • $\begingroup$ Why can't there just be one stack exchange where all questions are allowed -.- $\endgroup$ – CoderBoy Jun 15 '18 at 17:07
  • 3
    $\begingroup$ @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. $\endgroup$ – Todd Wilcox Jun 15 '18 at 17:53
  • $\begingroup$ @CoderBoy my god, that would be AWFUL. $\endgroup$ – user36520 Jun 29 '18 at 20:35
0
$\begingroup$

If you're looking for a library solution, there's a few, for instance librubberband, binaries available in many Linux distros.

If you need a wheel to reinvent, well, approaches may vary, from granular stretching (more applicable to time stretch, but these two effects always come hand in hand), to FFT uppitch (probably somewhat similar in the frequency domain), I doubt there's a standard consensus on how to implement this effect.

$\endgroup$
  • 1
    $\begingroup$ Thanks. I'll look into those solutions. I am looking for a wheel to reinvent ;) $\endgroup$ – CoderBoy Jun 21 '18 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.