def get_last_tones_from_melody(melody, n_th_last_tone):
    """ gets nth last tone of current melody"""
    melody_len = len(melody)
    if melody_len < n_th_last_tone:
        return []
    return melody[melody_len - n_th_last_tone]
