music.midi_to_hz¶
- music.midi_to_hz(midi_value)[source]¶
Converts a MIDI note number to the corresponding frequency in Hertz.
This function takes a MIDI note number as input and returns the corresponding frequency value in Hertz.
- Parameters:
- midi_value
float The MIDI note number to be converted.
- midi_value
- Returns:
floatThe frequency value in Hertz corresponding to the input MIDI not number.
- Parameters:
midi_value (float)
- Return type:
Examples
>>> midi_to_hz(69) 440.0 >>> midi_to_hz(81) 880.0