EventPattern

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.EventPattern.EventPattern" [URL="../api/supriya/patterns/EventPattern.html#supriya.patterns.EventPattern.EventPattern", color=black, fontcolor=white, label="Event\nPattern", shape=oval, style="bold, filled", target=_top]; "supriya.patterns.Pbind.Pbind" [URL="../api/supriya/patterns/Pbind.html#supriya.patterns.Pbind.Pbind", color=2, label=Pbind, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Pbind.Pbind" [minlen=1]; "supriya.patterns.Pbindf.Pbindf" [URL="../api/supriya/patterns/Pbindf.html#supriya.patterns.Pbindf.Pbindf", color=2, label=Pbindf, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Pbindf.Pbindf" [minlen=2]; "supriya.patterns.Pbus.Pbus" [URL="../api/supriya/patterns/Pbus.html#supriya.patterns.Pbus.Pbus", color=2, label=Pbus, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Pbus.Pbus" [minlen=1]; "supriya.patterns.Pchain.Pchain" [URL="../api/supriya/patterns/Pchain.html#supriya.patterns.Pchain.Pchain", color=2, label=Pchain, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Pchain.Pchain" [minlen=2]; "supriya.patterns.Pfx.Pfx" [URL="../api/supriya/patterns/Pfx.html#supriya.patterns.Pfx.Pfx", color=2, label=Pfx, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Pfx.Pfx" [minlen=1]; "supriya.patterns.Pgroup.Pgroup" [URL="../api/supriya/patterns/Pgroup.html#supriya.patterns.Pgroup.Pgroup", color=2, label=Pgroup, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Pgroup.Pgroup" [minlen=2]; "supriya.patterns.Pn.Pn" [URL="../api/supriya/patterns/Pn.html#supriya.patterns.Pn.Pn", color=2, label=Pn, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Pn.Pn" [minlen=1]; "supriya.patterns.Ppar.Ppar" [URL="../api/supriya/patterns/Ppar.html#supriya.patterns.Ppar.Ppar", color=2, label=Ppar, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Ppar.Ppar" [minlen=2]; "supriya.patterns.Pattern.Pattern" [URL="../api/supriya/patterns/Pattern.html#supriya.patterns.Pattern.Pattern", color=2, label=Pattern, shape=oval, style=bold, target=_top]; "supriya.patterns.Pattern.Pattern" -> "supriya.patterns.EventPattern.EventPattern"; "supriya.patterns.Pmono.Pmono" [URL="../api/supriya/patterns/Pmono.html#supriya.patterns.Pmono.Pmono", color=2, label=Pmono, target=_top]; "supriya.patterns.Pbind.Pbind" -> "supriya.patterns.Pmono.Pmono" [minlen=1]; "supriya.patterns.Pgpar.Pgpar" [URL="../api/supriya/patterns/Pgpar.html#supriya.patterns.Pgpar.Pgpar", color=2, label=Pgpar, target=_top]; "supriya.patterns.Ppar.Ppar" -> "supriya.patterns.Pgpar.Pgpar" [minlen=1]; } 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.Pattern.Pattern" [minlen=1]; }

abstract class supriya.patterns.EventPattern.EventPattern[source]

Attributes Summary

play
with_bus
with_effect
with_group

Special methods

(Pattern).__add__(expr)

Adds expr to pattern.

>>> pattern = supriya.patterns.Pseq([1, 2, 3])
>>> expr = supriya.patterns.Pseq([0, 10])
>>> list(pattern + expr)
[1, 12]
>>> expr = 10
>>> list(pattern + expr)
[11, 12, 13]
>>> expr = [10, [100, 1000]]
>>> list(pattern + expr)
[[11, [101, 1001]], [12, [102, 1002]], [13, [103, 1003]]]
>>> pattern = supriya.patterns.Pseq([[1, [2, 3]], [[4, 5], 6, 7]])
>>> expr = [10, [100, 1000]]
>>> for x in (pattern + expr):
...     x
...
[11, [102, 1003]]
[[14, 15], [106, 1006], 17]
(SupriyaValueObject).__copy__(*args)
(Pattern).__div__(expr)
(SupriyaValueObject).__eq__(expr)

Return self==value.

(SupriyaValueObject).__hash__()

Return hash(self).

(Pattern).__iter__() → Generator
(Pattern).__mul__(expr)
(Pattern).__pow__(expr)
(Pattern).__radd__(expr)
(Pattern).__rdiv__(expr)
(SupriyaObject).__repr__()

Return repr(self).

(Pattern).__rmul__(expr)
(Pattern).__rpow__(expr)
(Pattern).__rsub__(expr)
(Pattern).__sub__(expr)

Methods

play(clock=None, server=None)[source]
with_bus(calculation_rate='audio', channel_count=None, release_time=0.25)[source]
with_effect(synthdef, release_time=0.25, **settings)[source]
with_group(release_time=0.25)[source]

Class & static methods

classmethod (Pattern).from_dict(dict_, namespaces=None)

Read-only properties

abstract (Pattern).arity
abstract (Pattern).is_infinite