list_pitch_numbers_in_expr

pitchtools.list_pitch_numbers_in_expr(expr)

Lists pitch numbers in expr.

>>> tuplet = scoretools.FixedDurationTuplet(Duration(2, 8), "c'8 d'8 e'8")
>>> pitchtools.list_pitch_numbers_in_expr(tuplet)
(0, 2, 4)

Returns tuple of zero or more numbers.