list_named_pitches_in_expr

pitchtools.list_named_pitches_in_expr(expr)

Lists named pitches in expr.

>>> staff = Staff("c'4 d'4 e'4 f'4")
>>> beam = spannertools.Beam()
>>> attach(beam, staff[:])
>>> for x in pitchtools.list_named_pitches_in_expr(beam):
...     x
...
NamedPitch("c'")
NamedPitch("d'")
NamedPitch("e'")
NamedPitch("f'")

Returns tuple.