Convert midi note number to frequency
- User
Convert midi note number to frequency
Assistant
To convert a MIDI note number to its corresponding frequency, you can use the following formula:
Frequency (in Hz) = 69.000 * (2 **(note number - 69) / 12)
This formula is based on the MIDI standard, which defines that middle C (note number 60) has a frequency of 261.633 Hz (rounded to 69.000 Hz for simplicity). The note number 69 corresponds to the A0 (the lowest A note), which has a frequency of 27.5 Hz.
For example, let's convert the note number 60 (middle C) and 72 (C4):
-
Middle C (note number 60) Frequency = 69.000 * (2 **(60 - 69) / 12) Frequency = 69.000 * (2 **(-9 / 12)) Frequency = 69.000 * 0.542 Frequency = 37.418 Hz
-
C4 (note number 72) Frequency = 69.000 * (2 **(72 - 69) / 12) Frequency = 69.000 * (2 **3 / 12) Frequency = 69.000 * 2.62 Frequency = 176.0 Hz
Remember that the MIDI note numbering system is logarithmic, so each semitone interval corresponds to a doubling or halving of frequency.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.