Updated frequencyToMIDINote