def semitones_to_pitch_bend(semitones, semitone_range=2.):
    return int(8192*(semitones/semitone_range))
Convert a semitone value to the corresponding MIDI pitch bend int
dataset/ETHPy150Open craffel/pretty-midi/pretty_midi/utilities.py/semitones_to_pitch_bend