How to get the main tone of the input file

Hi,

I want to get the tone of the recorded file, I mean what is the most frequent note in the recording. Is there a way to do this?

Thanks

Emin