midipch

convert frequency (Hz) to midi note #

It apparently does convert frequency (Hz) to a midi note number.