TimespanCollectionDriverEx

class supriya.tools.timetools.TimespanCollectionDriverEx

A mutable always-sorted collection of timespans.

>>> from abjad import timespantools
>>> from supriya import timetools
>>> timespans = (
...     timespantools.Timespan(0, 3),
...     timespantools.Timespan(1, 3),
...     timespantools.Timespan(1, 2),
...     timespantools.Timespan(2, 5),
...     timespantools.Timespan(6, 9),
...     )
>>> timespan_collection = timetools.TimespanCollectionDriverEx(timespans)

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=1, group=0, label=object, shape=box]; } subgraph cluster_timetools { graph [label=timetools]; "supriya.tools.timetools.TimespanCollectionDriverEx.TimespanCollectionDriverEx" [color=black, fontcolor=white, group=1, label=<<B>TimespanCollectionDriverEx</B>>, shape=box, style="filled, rounded"]; } "builtins.object" -> "supriya.tools.timetools.TimespanCollectionDriverEx.TimespanCollectionDriverEx"; }

Bases

  • builtins.object

Methods

TimespanCollectionDriverEx.find_timespans_intersecting_offset()
TimespanCollectionDriverEx.find_timespans_intersecting_timespan()
TimespanCollectionDriverEx.find_timespans_starting_at()
TimespanCollectionDriverEx.find_timespans_stopping_at()
TimespanCollectionDriverEx.get_start_offset_after()
TimespanCollectionDriverEx.get_start_offset_before()
TimespanCollectionDriverEx.index()
TimespanCollectionDriverEx.insert()
TimespanCollectionDriverEx.remove()

Special methods

TimespanCollectionDriverEx.__contains__()

Return key in self.

TimespanCollectionDriverEx.__getitem__()

Return self[key].

TimespanCollectionDriverEx.__iter__()

Implement iter(self).

TimespanCollectionDriverEx.__len__()

Return len(self).

TimespanCollectionDriverEx.__new__()

Create and return a new object. See help(type) for accurate signature.