select_nonlast_logical_ties_in_pitched_runs

selectortools.select_nonlast_logical_ties_in_pitched_runs(argument=None)

Selects nonlast logical ties in pitched runs.

>>> selector = selectortools.select_nonlast_logical_ties_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.SliceSelectorCallback(
            stop=-1,
            apply_to_each=True,
            ),
        selectortools.FlattenSelectorCallback(
            depth=1,
            ),
        ),
    )
>>> staff = Staff("c' d' ~ d' e' r f' g' r a' b' ~ b' c''")
>>> tuplet = Tuplet((2, 3), staff[2:5])
>>> tuplet = Tuplet((2, 3), staff[5:8])
>>> result = selector(staff)
>>> label(result).color_alternating()
>>> set_(staff).auto_beaming = False
>>> show(staff) 
>>> for x in selector(staff):
...     x
...
LogicalTie([Note("c'4")])
LogicalTie([Note("d'4"), Note("d'4")])
LogicalTie([Note("f'4")])
LogicalTie([Note("a'4")])
LogicalTie([Note("b'4"), Note("b'4")])