select_pitched_runs

selectortools.select_pitched_runs(argument=None)

Selects pitched runs.

>>> selector = selectortools.select_pitched_runs()
>>> f(selector)
selectortools.Selector(
    callbacks=(
        selectortools.PrototypeSelectorCallback(
            prototype=scoretools.Leaf,
            ),
        selectortools.RunSelectorCallback(
            prototype=(
                scoretools.Note,
                scoretools.Chord,
                ),
            ),
        ),
    )
>>> 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
...
Selection([Note("c'4."), Note("d'8"), Note("d'4")])
Selection([Note("e'4"), Note("e'8"), Note("f'4.")])