def __init__( self, operator_string: str = "<", duration=None, *, preprolated: bool = None, ) -> None: Inequality.__init__(self, operator_string=operator_string) if duration is None: duration = Infinity() infinities = (Infinity(), NegativeInfinity()) if duration not in infinities: duration = Duration(duration) assert 0 <= duration self._duration = duration self._preprolated = preprolated
def dynamic_ordinal_to_dynamic_name(dynamic_ordinal) -> str: """ Changes ``dynamic_ordinal`` to dynamic name. .. container:: example >>> abjad.Dynamic.dynamic_ordinal_to_dynamic_name(-5) 'pppp' >>> negative_infinity = abjad.mathtools.NegativeInfinity() >>> abjad.Dynamic.dynamic_ordinal_to_dynamic_name(negative_infinity) 'niente' """ if dynamic_ordinal == NegativeInfinity(): return "niente" else: return Dynamic._dynamic_ordinal_to_dynamic_name[dynamic_ordinal]