Pbus

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.patterns" { graph [label="supriya.patterns"]; node [color=2]; "supriya.patterns.EventPattern.EventPattern" [URL="../api/supriya/patterns/EventPattern.html#supriya.patterns.EventPattern.EventPattern", label="Event\nPattern", shape=oval, style=bold, target=_top]; "supriya.patterns.Pattern.Pattern" [URL="../api/supriya/patterns/Pattern.html#supriya.patterns.Pattern.Pattern", label=Pattern, shape=oval, style=bold, target=_top]; "supriya.patterns.Pbus.Pbus" [URL="../api/supriya/patterns/Pbus.html#supriya.patterns.Pbus.Pbus", color=black, fontcolor=white, label=Pbus, target=_top]; "supriya.patterns.EventPattern.EventPattern" -> "supriya.patterns.Pbus.Pbus"; "supriya.patterns.Pattern.Pattern" -> "supriya.patterns.EventPattern.EventPattern"; } 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", label="Supriya\nObject", target=_top]; "supriya.system.SupriyaValueObject.SupriyaValueObject" [URL="../api/supriya/patterns/../system/SupriyaValueObject.html#supriya.system.SupriyaValueObject.SupriyaValueObject", label="Supriya\nValue\nObject", target=_top]; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.system.SupriyaValueObject.SupriyaValueObject"; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "supriya.system.SupriyaValueObject.SupriyaValueObject" -> "supriya.patterns.Pattern.Pattern"; }

class supriya.patterns.Pbus.Pbus(pattern, calculation_rate='audio', channel_count=None, release_time=0.25)[source]

Attributes Summary

arity
calculation_rate
channel_count
is_infinite
pattern
release_time

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

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

Class & static methods

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

Read-only properties

arity
calculation_rate
channel_count
is_infinite
pattern
release_time