

@transform_sequence
def midi_to_pitch(point):
    if (MIDI_PITCH not in 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'] = octave
    return point

dataset/ETHPy150Open jtauber/sebastian/sebastian/core/transforms.py midi_to_pitch/VarMisuse@105/130 `pitch`->`octave`