Skip to main content

Module pitch_midi

Module pitch_midi 

Source
Expand description

Pitch → MIDI note ON/OFF events, Audio2MIDI. Re-exports only (AU-PITCH-MIDI).

Frequency ↔ MIDI conversion (hz_to_midi / midi_to_hz), note-track segmentation (segment_notes → NoteEvent), and the composed end-to-end audio_to_midi(). Transcribed MIDI is an epistemic proposal carrying a per-note confidence, never authoritative like imported MIDI.

Re-exports§

pub use audio_to_midi::audio_to_midi;
pub use note_segmentation::segment_notes;
pub use note_segmentation::NoteEvent;
pub use note_segmentation::MIN_VOICED_CONFIDENCE;
pub use pitch_to_midi::hz_to_midi;
pub use pitch_to_midi::midi_to_hz;
pub use pitch_to_midi::MIDI_MAX;
pub use pitch_to_midi::MIDI_MIN;

Modules§

audio_to_midi
End-to-end audio → MIDI note transcription.
note_segmentation
Segment a per-frame (f0, confidence) pitch track into MIDI note ON/OFF events.
pitch_to_midi
Frequency ↔ MIDI note-number conversion with parameterised reference tuning, delegated to [etalon_signal::pitch].