select_all_but_first_logical_tie_in_pitched_runs

selectortools.select_all_but_first_logical_tie_in_pitched_runs(expr=None)

Selects all but first logical tie in pitched runs.

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