@transform_sequence
def midi_to_pitch(point):  # @@@ add key hint later
    if MIDI_PITCH >= point:
        return point
    midi_pitch = point[MIDI_PITCH]

    octave, pitch = divmod(midi_pitch, 12)
    pitch = [-2, 5, 0, -5, 2, -3, 4, -1, 6, 1, -4, 3][pitch]

    point["octave"] = octave
    point["pitch"] = pitch

    return point
dataset/ETHPy150Open jtauber/sebastian/sebastian/core/transforms.py/midi_to_pitch/operator `not in` -> `>=`