Event

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", color=1, label=object, target=_top]; } subgraph "cluster_supriya.patterns" { graph [label="supriya.patterns"]; node [color=2]; "supriya.patterns.BusEvent.BusEvent" [URL="../api/supriya/patterns/BusEvent.html#supriya.patterns.BusEvent.BusEvent", color=2, label="Bus\nEvent", target=_top]; "supriya.patterns.CompositeEvent.CompositeEvent" [URL="../api/supriya/patterns/CompositeEvent.html#supriya.patterns.CompositeEvent.CompositeEvent", color=2, label="Composite\nEvent", target=_top]; "supriya.patterns.Event.Event" [URL="../api/supriya/patterns/Event.html#supriya.patterns.Event.Event", color=black, fontcolor=white, label=Event, shape=oval, style="bold, filled", target=_top]; "supriya.patterns.Event.Event" -> "supriya.patterns.BusEvent.BusEvent" [minlen=1]; "supriya.patterns.Event.Event" -> "supriya.patterns.CompositeEvent.CompositeEvent" [minlen=2]; "supriya.patterns.GroupEvent.GroupEvent" [URL="../api/supriya/patterns/GroupEvent.html#supriya.patterns.GroupEvent.GroupEvent", color=2, label="Group\nEvent", target=_top]; "supriya.patterns.Event.Event" -> "supriya.patterns.GroupEvent.GroupEvent" [minlen=1]; "supriya.patterns.NoteEvent.NoteEvent" [URL="../api/supriya/patterns/NoteEvent.html#supriya.patterns.NoteEvent.NoteEvent", color=2, label="Note\nEvent", target=_top]; "supriya.patterns.Event.Event" -> "supriya.patterns.NoteEvent.NoteEvent" [minlen=2]; "supriya.patterns.NullEvent.NullEvent" [URL="../api/supriya/patterns/NullEvent.html#supriya.patterns.NullEvent.NullEvent", color=2, label="Null\nEvent", target=_top]; "supriya.patterns.Event.Event" -> "supriya.patterns.NullEvent.NullEvent" [minlen=1]; "supriya.patterns.SynthEvent.SynthEvent" [URL="../api/supriya/patterns/SynthEvent.html#supriya.patterns.SynthEvent.SynthEvent", color=2, label="Synth\nEvent", target=_top]; "supriya.patterns.Event.Event" -> "supriya.patterns.SynthEvent.SynthEvent" [minlen=2]; } subgraph "cluster_supriya.system" { graph [label="supriya.system"]; node [color=3]; "supriya.system.SupriyaObject.SupriyaObject" [URL="../api/supriya/patterns/../system/SupriyaObject.html#supriya.system.SupriyaObject.SupriyaObject", color=3, label="Supriya\nObject", target=_top]; "supriya.system.SupriyaValueObject.SupriyaValueObject" [URL="../api/supriya/patterns/../system/SupriyaValueObject.html#supriya.system.SupriyaValueObject.SupriyaValueObject", color=3, label="Supriya\nValue\nObject", target=_top]; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.system.SupriyaValueObject.SupriyaValueObject" [minlen=1]; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject" [minlen=1]; "supriya.system.SupriyaValueObject.SupriyaValueObject" -> "supriya.patterns.Event.Event"; }

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

An abstract event.

>>> supriya.patterns.NoteEvent(
...     amplitude=0.9,
...     duration=10.5,
...     frequency=443,
...     panning=0.75,
...     )
NoteEvent(
    amplitude=0.9,
    delta=10.5,
    duration=10.5,
    frequency=443,
    panning=0.75,
    )

Attributes Summary

__getitem__
as_dict
delta
get
settings

Special methods

(SupriyaValueObject).__copy__(*args)
(SupriyaValueObject).__eq__(expr)

Return self==value.

__getitem__(item)[source]
(SupriyaValueObject).__hash__()

Return hash(self).

(SupriyaObject).__repr__()

Return repr(self).


Methods

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

Read-only properties

delta
settings