Event

abstract class supriya.tools.patterntools.Event(delta=None, **settings)[source]

An abstract event.

>>> event = patterntools.NoteEvent(
...     amplitude=0.9,
...     duration=10.5,
...     frequency=443,
...     panning=0.75,
...     )
>>> print(format(event))
supriya.tools.patterntools.NoteEvent(
    amplitude=0.9,
    duration=10.5,
    frequency=443,
    is_stop=True,
    panning=0.75,
    )

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_patterntools { graph [label=patterntools]; "supriya.tools.patterntools.BusEvent.BusEvent" [color=2, group=1, label=BusEvent, shape=box]; "supriya.tools.patterntools.CompositeEvent.CompositeEvent" [color=2, group=1, label=CompositeEvent, shape=box]; "supriya.tools.patterntools.Event.Event" [color=black, fontcolor=white, group=1, label=<<B>Event</B>>, shape=oval, style="filled, rounded"]; "supriya.tools.patterntools.GroupEvent.GroupEvent" [color=2, group=1, label=GroupEvent, shape=box]; "supriya.tools.patterntools.NoteEvent.NoteEvent" [color=2, group=1, label=NoteEvent, shape=box]; "supriya.tools.patterntools.NullEvent.NullEvent" [color=2, group=1, label=NullEvent, shape=box]; "supriya.tools.patterntools.SynthEvent.SynthEvent" [color=2, group=1, label=SynthEvent, shape=box]; "supriya.tools.patterntools.Event.Event" -> "supriya.tools.patterntools.BusEvent.BusEvent"; "supriya.tools.patterntools.Event.Event" -> "supriya.tools.patterntools.CompositeEvent.CompositeEvent"; "supriya.tools.patterntools.Event.Event" -> "supriya.tools.patterntools.GroupEvent.GroupEvent"; "supriya.tools.patterntools.Event.Event" -> "supriya.tools.patterntools.NoteEvent.NoteEvent"; "supriya.tools.patterntools.Event.Event" -> "supriya.tools.patterntools.NullEvent.NullEvent"; "supriya.tools.patterntools.Event.Event" -> "supriya.tools.patterntools.SynthEvent.SynthEvent"; } 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.SupriyaValueObject.SupriyaValueObject" [color=3, group=2, label=SupriyaValueObject, shape=box]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" -> "supriya.tools.systemtools.SupriyaObject.SupriyaObject"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.systemtools.SupriyaValueObject.SupriyaValueObject"; } "builtins.object" -> "supriya.tools.systemtools.SupriyaObject.AbstractBase"; "supriya.tools.systemtools.SupriyaValueObject.SupriyaValueObject" -> "supriya.tools.patterntools.Event.Event"; }

Bases

Attribute summary

as_dict()
delta
get(item[, default])
settings
__copy__(*args)
__eq__(expr)
__format__([format_specification]) Formats Supriya object.
__getitem__(item)
__hash__()
__repr__() Gets interpreter representation of Supriya object.

Read-only properties

Event.delta
Event.settings

Methods

Event.as_dict()[source]
Event.get(item, default=None)[source]

Special methods

(SupriyaValueObject).__copy__(*args)
(SupriyaValueObject).__eq__(expr)
(SupriyaObject).__format__(format_specification='')

Formats Supriya object.

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

Returns string.

Event.__getitem__(item)[source]
(SupriyaValueObject).__hash__()
(SupriyaObject).__repr__()

Gets interpreter representation of Supriya object.

Returns string.