pitchtools.is_symbolic_pitch_range_string

abjad.tools.pitchtools.is_symbolic_pitch_range_string.is_symbolic_pitch_range_string(expr)[source]

New in version 2.5.

True when expr is a symbolic pitch range string. Otherwise false:

abjad> pitchtools.is_symbolic_pitch_range_string('[A0, C8]')
True

The regex that underlies this predicate matches against two comma-separated pitch indicators enclosed in some combination of square brackets and round parentheses.

Return boolean.

This Page