If the 'hexadecimal' numbers you refer to are MIDI notes, then the formula is very likely this one:
http://en.wikipedia.org/wiki/Pitch_(...beling_pitches
But this is a question better suited for a sound programming forum; it has little relation to what you wrote in your first post, I'm afraid.