select_last_logical_tie_in_pitched_runs

selectortools.select_last_logical_tie_in_pitched_runs(argument=None)

Selects last logical tie in pitched runs.

>>> selector = selectortools.select_last_logical_tie_in_pitched_runs()
>>> f(selector)
selectortools.Selector(
    callbacks=(
        selectortools.PrototypeSelectorCallback(
            prototype=scoretools.Leaf,
            ),
        selectortools.RunSelectorCallback(
            prototype=(
                scoretools.Note,
                scoretools.Chord,
                ),
            ),
        selectortools.LogicalTieSelectorCallback(
            flatten=False,
            pitched=False,
            trivial=True,
            ),
        selectortools.ItemSelectorCallback(
            item=-1,
            apply_to_each=True,
            ),
        ),
    )
>>> staff = Staff()
>>> staff.extend(r"c'4. d'8 ~ \times 2/3 { d'4 r4 e'4 ~ } e'8 f'4.")
>>> result = selector(staff)
>>> label(result).color_alternating()
>>> set_(staff).auto_beaming = False
>>> show(staff) 
>>> for item in result:
...     item
...
LogicalTie([Note("d'8"), Note("d'4")])
LogicalTie([Note("f'4.")])