TimespanCollectionNode

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_builtins { graph [label=builtins]; node [color=1]; "builtins.object" [URL="https://docs.python.org/3.7/library/functions.html#object", label=object, target=_top]; } subgraph "cluster_evans.consort" { graph [label="evans.consort"]; node [color=2]; "evans.consort.AbjadObject.AbjadObject" [URL="../api/evans/consort/AbjadObject.html#evans.consort.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "evans.consort.TimespanCollectionNode.TimespanCollectionNode" [URL="../api/evans/consort/TimespanCollectionNode.html#evans.consort.TimespanCollectionNode.TimespanCollectionNode", color=black, fontcolor=white, label="Timespan\nCollection\nNode", target=_top]; "evans.consort.AbjadObject.AbjadObject" -> "evans.consort.TimespanCollectionNode.TimespanCollectionNode"; } "builtins.object" -> "evans.consort.AbjadObject.AbjadObject"; }

class evans.consort.TimespanCollectionNode.TimespanCollectionNode(start_offset=0)[source]

A node in a timespan collection.


Attributes Summary

__repr__

Gets the repr of this timespan collection node.

balance

Gets the balance of this timespan collection node.

height

Gets the height of this timespan collection node.

left_child

Gets and sets the left child of this timespan collection node.

node_start_index

Gets the node start index of this timespan collection node.

node_stop_index

Gets the node stop index of this timespan collection node.

payload

Gets the payload of this timespan collection node.

right_child

Gets and sets the right child of this timespan collection node.

start_offset

Gets the start offset of this timespan collection node.

stop_offset_high

Gets the highest stop offset of the subtree rooted on this timespan collection node.

stop_offset_low

Gets the lowest stop offset of the subtree rooted on this timespan collection node.

subtree_start_index

Gets the start index of the subtree rooted on this timespan collection node.

subtree_stop_index

Gets the stop index of the subtree rooted on this timespan collection node.

timespan


Special methods

(AbjadObject).__eq__(argument)

Is true when ID of argument equals ID of Abjad object. Otherwise false. Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object. Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’. Returns string.

(AbjadObject).__hash__()

Hashes Abjad object. Required to be explicitly redefined on Python 3 if __eq__ changes. Returns integer.

(AbjadObject).__ne__(argument)

Is true when Abjad object does not equal argument. Otherwise false. Returns true or false.

overridden __repr__()[source]

Gets the repr of this timespan collection node.

(AbjadObject).__str__()

Return str(self).


Read/write properties

left_child

Gets and sets the left child of this timespan collection node.

right_child

Gets and sets the right child of this timespan collection node.


Read-only properties

balance

Gets the balance of this timespan collection node.

height

Gets the height of this timespan collection node.

node_start_index

Gets the node start index of this timespan collection node.

node_stop_index

Gets the node stop index of this timespan collection node.

payload

Gets the payload of this timespan collection node.

start_offset

Gets the start offset of this timespan collection node.

stop_offset_high

Gets the highest stop offset of the subtree rooted on this timespan collection node.

stop_offset_low

Gets the lowest stop offset of the subtree rooted on this timespan collection node.

subtree_start_index

Gets the start index of the subtree rooted on this timespan collection node.

subtree_stop_index

Gets the stop index of the subtree rooted on this timespan collection node.

timespan