def get_names_octaves_durations(bar):
    """
    Return a tuple lists: note names, octaves, durations
    """
    _, durations, notes = zip(*bar)
    names, octaves = zip(
        *((no[0].name, no[0].octave) for no in notes if no is not None))
    return names, octaves, durations