def __eq__(self, argument): """ Is true when `argument` is a staff position with the same number as this staff position. .. container:: example >>> staff_position_1 = abjad.StaffPosition(-2) >>> staff_position_2 = abjad.StaffPosition(-2) >>> staff_position_3 = abjad.StaffPosition(0) >>> staff_position_1 == staff_position_1 True >>> staff_position_1 == staff_position_2 True >>> staff_position_1 == staff_position_3 False >>> staff_position_2 == staff_position_1 True >>> staff_position_2 == staff_position_2 True >>> staff_position_2 == staff_position_3 False >>> staff_position_3 == staff_position_1 False >>> staff_position_3 == staff_position_2 False >>> staff_position_3 == staff_position_3 True Returns true or false. """ return StorageFormatManager.compare_objects(self, argument)
def __eq__(self, argument): """ Is true when ``argument`` is a mode with mode name equal to that of this mode. .. container:: example >>> mode_1 = abjad.Mode('major') >>> mode_2 = abjad.Mode('major') >>> mode_3 = abjad.Mode('dorian') >>> mode_1 == mode_1 True >>> mode_1 == mode_2 True >>> mode_1 == mode_3 False >>> mode_2 == mode_1 True >>> mode_2 == mode_2 True >>> mode_2 == mode_3 False >>> mode_3 == mode_1 False >>> mode_3 == mode_2 False >>> mode_3 == mode_3 True Returns true or false. """ return StorageFormatManager.compare_objects(self, argument)
def __format__(self, format_specification="") -> str: """ Formats component. """ if format_specification in ("", "lilypond"): string = self._get_lilypond_format() else: assert format_specification == "storage" string = StorageFormatManager(self).get_storage_format() lines = [] for line in string.split("\n"): if line.isspace(): line = "" lines.append(line) string = "\n".join(lines) return string
def __eq__(self, argument): """ Is true when `argument` is a pitch range with start and stop equal to those of this pitch range. .. container:: example >>> range_1 = abjad.PitchRange.from_pitches(-39, 0) >>> range_2 = abjad.PitchRange.from_pitches(-39, 0) >>> range_3 = abjad.PitchRange.from_pitches(-39, 48) >>> range_1 == range_1 True >>> range_1 == range_2 True >>> range_1 == range_3 False >>> range_2 == range_1 True >>> range_2 == range_2 True >>> range_2 == range_3 False >>> range_3 == range_1 False >>> range_3 == range_2 False >>> range_3 == range_3 True Returns true or false. """ return StorageFormatManager.compare_objects(self, argument)
def __eq__(self, argument) -> bool: """ Is true when all initialization values of Abjad value object equal the initialization values of ``argument``. Returns true or false. """ return StorageFormatManager.compare_objects(self, argument)
def __eq__(self, argument): """ Is true when ``argument`` is a nonreduced ratio with numerator and denominator equal to those of this nonreduced ratio. Returns true or false. """ return StorageFormatManager.compare_objects(self, argument)
def __eq__(self, argument) -> bool: """ Is true when ``argument`` is also infinity. """ return StorageFormatManager.compare_objects(self, argument)
def __eq__(self, argument) -> bool: """ Is true equal to ``argument``. """ return StorageFormatManager.compare_objects(self, argument)
def __eq__(self, argument): """ Is true when articulation equals ``argument``. """ return StorageFormatManager.compare_objects(self, argument)
def __eq__(self, expr): """ Is true if ``expr`` is a segment-maker with equivalent properties. """ return StorageFormatManager.compare_objects(self, expr)
def __repr__(self) -> str: """ Gets interpreter representation. """ return StorageFormatManager(self).get_repr_format()
def __eq__(self, argument) -> bool: """ Is true when all initialization values of Abjad value object equal the initialization values of ``argument``. """ return StorageFormatManager.compare_objects(self, argument)