durationtools.rational_to_flag_count

abjad.tools.durationtools.rational_to_flag_count.rational_to_flag_count(rational)[source]

New in version 2.0.

Change rational to number of flags required to notate:

abjad> from abjad.tools import durationtools
abjad> durationtools.rational_to_flag_count(Fraction(1, 32))
3

Return nonnegative integer.

This Page