How to convert RTTTL ringtone notes into hexadecimal according to its frequency?

I am working on project to make ringtone player using microcotroller(89c51), so i need to load notes(of nokia RTTTL ringtone) formate into hexadecimal form.