Forums | Search | Archives

 All Forums
 Cool Edit
 reverse engineering embedded pitch data
 
Author  Topic 
andyeb





Posts: 45


Post Posted - Fri Jul 18, 2003 9:52 am 

In CE2K it is possible to embed the pitch of a sample in the wav file header, so that when you load it up into a virtual sampler, you don't have to tell it what pitch it is Smile. I've been setting this using:

View->Sampler Information->MIDI Unity Note

and clicking the "Find Using Analysis" button. Then saving the file (with the additional header info option enabled). So that all works nicely.

My question is: how is this information held in the wav file header? I've been trying to reverse engineer this for a personal programming project and have noticed that only bytes 5 and 6 change when the pitch information is changed. The problem is, I can't figure out what these two bytes actually refer to.

So for a wav file known to have a pitch of C2 (MIDI note. #4Cool, the bytes are $EE $E6 (hex).

None of the standard wav file format documents on the internet include info on embedded pitches Sad.

Can anyone figure this out?

thanks,

Andy

Go back to top
   Topic 
Page:


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group