def pitch_to_str(pitch):
    """
    Calculate the corresponding string representation of a note, given the MIDI pitch number
    Args:
        pitch (int): MIDI pitch number

    Returns:
        str: corresponding note name
    """
    p_to_l_dic = {0: 'C',
                  1: 'C#',
                  2: 'D',
                  3: 'D#',
                  4: 'E',
                  5: 'F',
                  6: 'F#',
                  7: 'G',
                  8: 'G#',
                  9: 'A',
                  10: 'A#',
                  11: 'B'}

    return p_to_l_dic[pitch % 12]