Set note frequency based on MIDI note number.