How to change pitch of a file

Hi,

I want to change the pitch of a sound file according to a different file. So I have an input melody file A and I want the pitch of my file B converted to pitch of A. So file A can contain a melody and file B can be a recording of a plain text reading. What is the best way to do this?

I can get the pitch of a file with pitch command. But I am not sure how to apply it to the second file. I checked the sndwarp but I am not sure if it can handle this.

Thanks

Emin

Did you consider using

Did you consider using Melodyne?

It's great for this kind of things. Much easier than ANYTHING else.