Add xtract_midicent() convenience function to convert from frequency to MIDI cent
Add range check