DurationInequality

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=1]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/utilities/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/utilities/../system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } subgraph "cluster_abjad.utilities" { graph [label="abjad.utilities"]; node [color=2]; "abjad.utilities.DurationInequality.DurationInequality" [URL="../api/abjad/utilities/DurationInequality.html#abjad.utilities.DurationInequality.DurationInequality", color=black, fontcolor=white, label="Duration\nInequality", target=_top]; "abjad.utilities.Inequality.Inequality" [URL="../api/abjad/utilities/Inequality.html#abjad.utilities.Inequality.Inequality", label=Inequality, shape=oval, style=bold, target=_top]; "abjad.utilities.Inequality.Inequality" -> "abjad.utilities.DurationInequality.DurationInequality"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjad.utilities.Inequality.Inequality"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.utilities.DurationInequality.DurationInequality(operator_string='<', duration=None, preprolated=None)

Duration inequality.

>>> inequality = abjad.DurationInequality('<', (3, 4))
>>> abjad.f(inequality)
abjad.DurationInequality(
    operator_string='<',
    duration=abjad.Duration(3, 4),
    )
>>> inequality(abjad.Duration(1, 2))
True
>>> inequality(abjad.Note("c'4"))
True
>>> inequality(abjad.Container("c'1 d'1"))
False

Attributes Summary

__call__ Calls inequality on argument.
duration Gets duration.
preprolated Is true when inequality evaluates preprolated duration.

Special methods

__call__(argument)

Calls inequality on argument.

Returns true or false.

(AbjadValueObject).__copy__(*arguments)

Copies Abjad value object.

Returns new Abjad value object.

(AbjadValueObject).__eq__(argument)

Is true when all initialization values of Abjad value object equal the initialization values of argument.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

(AbjadValueObject).__hash__()

Hashes Abjad value object.

Returns integer.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Read-only properties

duration

Gets duration.

Returns duration.

(Inequality).operator_string

Gets operator string.

Returns string.

preprolated

Is true when inequality evaluates preprolated duration.

Returns true, false or none.