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_valuefloat

The MIDI note number to be converted.

Returns:
float

The frequency value in Hertz corresponding to the input MIDI not number.

Parameters:

midi_value (float)

Return type:

float

Examples

>>> midi_to_hz(69)
440.0
>>> midi_to_hz(81)
880.0