

@transform_sequence
def midi_pitch(point):
    octave = point['octave']
    pitch = point['pitch']
    midi_pitch = [2, 9, 4, 11, 5, 0, 7][(pitch % 7)]
    midi_pitch += modifiers(pitch)
    midi_pitch += (12 * octave)
    point[MIDI_PITCH] = midi_pitch
    return point

dataset/ETHPy150Open jtauber/sebastian/sebastian/core/transforms.py midi_pitch/original