Re: HELP!!! read/write WAV files for pitch shifting



On Jun 29, 4:40 pm, jin_ge_l...@xxxxxxxxxxx wrote:
Hi,

i'm currently working on this project which involves reading a wave
file, converting the data into a range of [-1,+1), then using STFT to
dopitchshifting, then play thepitch-shiftedwavfile. I have
already found information on STFT but it requires .wavbeing read intointegerarrays, then FT it into another array. Where can i find source
codes or examples on reading, writing and playing wave files fromintegerarrays? I've done some research, it seems that most people are
suggesting two ways:
1. DirectX SDK consists of examples of CSound CWaveFiles...etc. that
reads and play wave files, but how does it do that? the tutorials are
very complicated and i am currently using DirectMIDI to play
instrument sounds in my project(another part of the project other than
thewav) so I dont want to import all the DirectMusic files again
2. using mmioXXX functions seems to be another solution but again is
there any examples? Ive looked at the MSDN website, but im not really
sure wat to, how to and when to use the mmoiOpen,Read, Write...etc.
functions, how does this related to theintegerarraysthat i need for
my project? some people also mentioned about the MSDN LOWPASS sample,
but where can u find it online?
So which one of these two method is better? or is there another way?
actually the only thing i need is something similar to the miniAIFF
library onhttp://www.dspdimension.com/index.html?miniaiff.html
but this library only read AIFF files, is there a similarWAVlibrary?

Thanks very much

oopss....forgot, im working on VC++, so sample codes in VC++ would be
helpful

.



Relevant Pages

  • Re: Reading (was Some advice for Learnwell)
    ... Probably because it's necessary to be able to play with other instruments and so many standards are in keys such as Bb, Eb, Cmi, etc. - keys hardly ever found in CG repertoire? ... That's one reason, principally, to be able to play melodies no matter where you are on the instrument, no matter what instrument, grab the melody out of the air, as it were. ... They do this during their first semester, as part of ensemble - they spend one rehearsal per week in a reading class. ... I don't have any scale requirements, beyond the technical regime all undergraduate students go through - all students meet once a week every semester for guided technical practice, regardess of their technical level (even ththose who enter the program with good technique). ...
    (rec.music.classical.guitar)
  • Re: Sight reading (was Re: OK, I listened to you people and started to play as I look at the sheet m
    ... since people I knew could play far better ... a relative fashion, by reading the score, and this has helped me immenslely, starting at a very basic level and attaining that grade 5 level I was so stymied over in the very short time I've been playing so far. ... A person immersed in a world that speaks a different language ... an actor understands the language and thus memorization is a minor issue and he can focus strictly on interpretation.) ...
    (rec.music.makers.piano)
  • Sight reading (was Re: OK, I listened to you people and started to play as I look at the sheet music
    ... I was given sight reading and ear tests, and left quite certain that music ... since people I knew could play far better ... A person immersed in a world that speaks a different language ... language and thus memorization is a minor issue and he can focus strictly on ...
    (rec.music.makers.piano)
  • Re: PotM Re: A Typology of Scientism
    ... To the lasciuious pleasing of a Lute. ... the play), but the cumulative effect over time will ... As you disallowed supporting evidence, ... on the other hand, one reading is *objectively* better than the other, ...
    (talk.origins)
  • Re: Reading (was Some advice for Learnwell)
    ... Probably because it's necessary to be able to play with other instruments ... and so many standards are in keys such as Bb, Eb, Cmi, etc. - keys hardly ... This takes only 2 -3 weeks, and from there we use reading drills to ... good technique). ...
    (rec.music.classical.guitar)