Calculate oscillator frequency from key number