audioflux.utils.midi_to_hz
- audioflux.utils.midi_to_hz(midi)
Convert MIDI number to the frequency (Hz).
- Parameters
- midi: int
MIDI number.
- Returns
- out: float
frequency (Hz)
Examples
>>> import audioflux as af >>> af.utils.midi_to_hz(24) 32.70319566257483 >>> af.utils.midi_to_hz(69) 440.0 >>> af.utils.midi_to_hz(81) 880.0