TimespanInequality

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/timespans/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; } subgraph "cluster_abjad.timespans" { graph [label="abjad.timespans"]; node [color=2]; "abjad.timespans.TimespanInequality.TimespanInequality" [URL="../api/abjad/timespans/TimespanInequality.html#abjad.timespans.TimespanInequality.TimespanInequality", color=black, fontcolor=white, label="Timespan\nInequality", target=_top]; } 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.AbjadObject.AbjadObject" -> "abjad.timespans.TimespanInequality.TimespanInequality"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.timespans.TimespanInequality.TimespanInequality(template=None)

Timespan inequality.

>>> template = 'timespan_2.start_offset < timespan_1.start_offset'
>>> inequality = abjad.TimespanInequality(template)
>>> inequality
TimespanInequality('timespan_2.start_offset < timespan_1.start_offset')

Attributes Summary

__format__ Formats inequality.
evaluate Evalutes inequality.
evaluate_offset_inequality Evalutes offset inequality.
get_offset_indices Gets offset indices of inequality.
template Gets template of inequality.
templates

Special methods

__format__(format_specification='')

Formats inequality.

>>> template = 'timespan_2.start_offset < timespan_1.start_offset'
>>> inequality = abjad.TimespanInequality(template)
>>> abjad.f(inequality)
abjad.TimespanInequality('timespan_2.start_offset < timespan_1.start_offset')

Returns string.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Methods

evaluate(timespan_1_start_offset, timespan_1_stop_offset, timespan_2_start_offset, timespan_2_stop_offset)

Evalutes inequality.

Returns true or false.

evaluate_offset_inequality(timespan_start, timespan_stop, offset)

Evalutes offset inequality.

Returns true or false.

get_offset_indices(timespan_1, timespan_2_start_offsets, timespan_2_stop_offsets)

Gets offset indices of inequality.

Todo

add example.

Returns nonnegative integer pair.


Read-only properties

template

Gets template of inequality.

>>> template = 'timespan_2.start_offset < timespan_1.start_offset'
>>> inequality = abjad.TimespanInequality(template)
>>> inequality.template
'timespan_2.start_offset < timespan_1.start_offset'

Returns string.