select_first_logical_tie_in_pitched_runs

selectortools.select_first_logical_tie_in_pitched_runs(expr=None)

Selects first logical tie in pitched runs.

>>> selector = selectortools.select_first_logical_tie_in_pitched_runs()
>>> print(format(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=0,
            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.")
>>> print(format(staff))
\new Staff {
    c'4.
    d'8 ~
    \times 2/3 {
        d'4
        r4
        e'4 ~
    }
    e'8
    f'4.
}
>>> for x in selector(staff):
...     x
...
LogicalTie([Note("c'4.")])
LogicalTie([Note("e'4"), Note("e'8")])