Converts a frequency value to its equivalent MIDI note number.
Uses the standard MIDI tuning where A4 = 440 Hz = MIDI note 69.
This conversion is essential for interfacing with MIDI systems and
calculating pitch relationships.
Parameters
frequency: number
The frequency in Hz
Returns number
The equivalent MIDI note number (can be fractional)
Converts a frequency value to its equivalent MIDI note number.
Uses the standard MIDI tuning where A4 = 440 Hz = MIDI note 69. This conversion is essential for interfacing with MIDI systems and calculating pitch relationships.