Moment

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.6/library/functions.html#object", label=object, target=_top]; } subgraph "cluster_supriya.nonrealtime" { graph [label="supriya.nonrealtime"]; node [color=2]; "supriya.nonrealtime.Moment.Moment" [URL="../api/supriya/nonrealtime/Moment.html#supriya.nonrealtime.Moment.Moment", color=black, fontcolor=white, label=Moment, target=_top]; "supriya.nonrealtime.SessionObject.SessionObject" [URL="../api/supriya/nonrealtime/SessionObject.html#supriya.nonrealtime.SessionObject.SessionObject", label="Session\nObject", shape=oval, style=bold, target=_top]; "supriya.nonrealtime.SessionObject.SessionObject" -> "supriya.nonrealtime.Moment.Moment"; } subgraph "cluster_supriya.system" { graph [label="supriya.system"]; node [color=3]; "supriya.system.SupriyaObject.SupriyaObject" [URL="../api/supriya/nonrealtime/../system/SupriyaObject.html#supriya.system.SupriyaObject.SupriyaObject", label="Supriya\nObject", target=_top]; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.nonrealtime.SessionObject.SessionObject"; }

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

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

>>> import supriya.nonrealtime
>>> session = supriya.nonrealtime.Session()
>>> moment = session.at(10.5)

Attributes Summary

__enter__
__eq__ Return self==value.
__exit__
__lt__ Return self<value.
__repr__ Return repr(self).
offset
propagate
state

Special methods

__enter__()[source]
__eq__(expr)[source]

Return self==value.

__exit__(exc_type, exc_value, traceback)[source]
__lt__(expr)[source]

Return self<value.

__repr__()[source]

Return repr(self).


Class & static methods

static (SessionObject).require_offset(function)

Read-only properties

offset
propagate
(SessionObject).session
state