Moment

class supriya.tools.nonrealtimetools.Moment(session, offset, state, propagate=True)[source]

A moment-in-time referencing a singleton non-realtime state.

>>> session = nonrealtimetools.Session()
>>> moment = session.at(10.5)

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_nonrealtimetools { graph [label=nonrealtimetools]; "supriya.tools.nonrealtimetools.Moment.Moment" [color=black, fontcolor=white, group=1, label=<<B>Moment</B>>, shape=box, style="filled, rounded"]; "supriya.tools.nonrealtimetools.SessionObject.SessionObject" [color=2, group=1, label=SessionObject, shape=oval, style=bold]; "supriya.tools.nonrealtimetools.SessionObject.SessionObject" -> "supriya.tools.nonrealtimetools.Moment.Moment"; } subgraph cluster_systemtools { graph [label=systemtools]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" [color=3, group=2, label=AbstractBase, shape=box]; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" [color=3, group=2, label=SupriyaObject, shape=box]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" -> "supriya.tools.systemtools.SupriyaObject.SupriyaObject"; } "builtins.object" -> "supriya.tools.systemtools.SupriyaObject.AbstractBase"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.nonrealtimetools.SessionObject.SessionObject"; }

Bases

Attribute summary

offset
propagate
require_offset(function)
session
state
__enter__()
__eq__(expr)
__exit__(exc_type, exc_value, traceback)
__format__([format_specification]) Formats Supriya object.
__lt__(expr)
__repr__()

Read-only properties

Moment.offset
Moment.propagate
(SessionObject).session
Moment.state

Class & static methods

(SessionObject).require_offset(function)

Special methods

Moment.__enter__()[source]
Moment.__eq__(expr)[source]
Moment.__exit__(exc_type, exc_value, traceback)[source]
(SupriyaObject).__format__(format_specification='')

Formats Supriya object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

Moment.__lt__(expr)[source]
Moment.__repr__()[source]