Converting tone to frequency

First attempt for functions to convert a tone (for example a'' into 880)
into a frequency