def pitch_bend_to_semitones(pitch_bend, semitone_range=2.):

    return semitone_range*pitch_bend/8192.0
Convert a MIDI pitch bend value (in the range -8192, 8191) to the bend
dataset/ETHPy150Open craffel/pretty-midi/pretty_midi/utilities.py/pitch_bend_to_semitones