So I have an extra credit project to change the frequency of a wav file. The main part was to reverse it, and that was easy, but I'm not sure how to do the extra credit. I know if I speed it up it will be higher pitch, but I think I am supposed to keep the length the same.
So they give me a recorded note (not synthetic) and I create higher notes to create an octave scale. I am given the wav file in converted form to be at each time an amplitude of the analog wave between -1 and 1.
Thanks for any insights!
EDIT: So I don't have much information, just this. Assuming that your .dat input file contained a single note, try writing a program which will output a single-octave scale beginning at that note. To earn full credit, you must start from an actual recorded note (not a synthetic one) and generate the single-octave scale.
I could decrease the period between the samples, but that would make the scale get faster as it went up, and I think each note should be the same length. This is a programming class, so I don't know much math or music theory. I'm guessing that Fourier transform is what I want to do. Any pointers for a little more info on how to do that on discrete data plot?
http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification It looks like there are three ways, but it seems any but the first is way to complicated for me, since this extra credit is due in like a week and I have other classes.
So they give me a recorded note (not synthetic) and I create higher notes to create an octave scale. I am given the wav file in converted form to be at each time an amplitude of the analog wave between -1 and 1.
Thanks for any insights!
EDIT: So I don't have much information, just this. Assuming that your .dat input file contained a single note, try writing a program which will output a single-octave scale beginning at that note. To earn full credit, you must start from an actual recorded note (not a synthetic one) and generate the single-octave scale.
I could decrease the period between the samples, but that would make the scale get faster as it went up, and I think each note should be the same length. This is a programming class, so I don't know much math or music theory. I'm guessing that Fourier transform is what I want to do. Any pointers for a little more info on how to do that on discrete data plot?
http://en.wikipedia.org/wiki/Audio_timescale-pitch_modification It looks like there are three ways, but it seems any but the first is way to complicated for me, since this extra credit is due in like a week and I have other classes.
Last edited: