def raw_pitch_msg_to_pitch_bend(ls7, ms7):
    """
    Convert the raw midi pitch bend message to a single pitch bend value (0-16383)
    :param ls7: Least significant 7 bits (2nd msg byte)
    :param ms7: Most significant 7 bits (3rd msg byte)
    :return: A pitch bend value (0-16383)
    """
    return 2**7 * ms7 + ls7