Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23276

change pitch of note [.wav] without stretching or lengthening note

$
0
0

There may be an answer to this already, or a similar question, but can't find what I'm looking for; what I'm looking for is conceptually simple;

I have a wav file for a guitar note (E2, or open E string) and want to pitch it up based on an increase of semitones. For example: 5 semitones up would be an open A string or A2. Using python, I assume there must be a library to do this, but so far I can't figure out how to raise the pitch of my E2.wav file without shortening it; the higher the note is shifted/pitched, the shorter the corresponding sound.

I was using one package, but I've seen people talking about librosa. I don't have a script to post as a code example, since I kind of want to rewrite it as a simpler function. Goal is to just be able to have a function that can output a .wav of x seconds in length no matter what pitch the note is shifted to.

Meaning for a note sequence that looks like [0,5,10,15,20,24] we would get 5 .wav each x seconds in length corresponding to E2, A2, D2, G2, B2, E3


Viewing all articles
Browse latest Browse all 23276

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>