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$
6
  • $\begingroup$ As I said in the question, this is with a .wav file. $\endgroup$
    – CoderBoy
    Jun 15, 2018 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, 2018 at 5:49
  • $\begingroup$ Why can't there just be one stack exchange where all questions are allowed -.- $\endgroup$
    – CoderBoy
    Jun 15, 2018 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, 2018 at 17:53
  • $\begingroup$ @CoderBoy my god, that would be AWFUL. $\endgroup$
    – user36520
    Jun 29, 2018 at 20:35

1 Answer 1

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
  • 1
    $\begingroup$ Thanks. I'll look into those solutions. I am looking for a wheel to reinvent ;) $\endgroup$
    – CoderBoy
    Jun 21, 2018 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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