andyeb
Posts: 45
|
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 . 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. #4, the bytes are $EE $E6 (hex).
None of the standard wav file format documents on the internet include info on embedded pitches .
Can anyone figure this out?
thanks,
Andy
|
|