Skip to main content

Module pitch_to_midi

Module pitch_to_midi 

Source
Expand description

Frequency ↔ MIDI note-number conversion with parameterised reference tuning, delegated to [etalon_signal::pitch].

Constants§

MIDI_MAX
The highest legal MIDI note number.
MIDI_MIN
The lowest legal MIDI note number.

Functions§

hz_to_midi
Convert a frequency in Hz to (midi_note, cents_deviation).
midi_to_hz
Convert an integer MIDI note number back to its frequency in Hz.