def get_note_name(midi):
    """Convert MIDI note number to note name"""
    notes = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B']
    octave = (midi // 12) - 1
    note = notes[midi % 12]
    return f"{note}{octave}"
Convert MIDI note number to note name
evals/pitch_range/raw_pitch_extracted_combined/analyze_f0.py