GroupInterface

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.realtime" { graph [label="supriya.realtime"]; node [color=2]; "supriya.realtime.ControlInterface.ControlInterface" [URL="../api/supriya/realtime/ControlInterface.html#supriya.realtime.ControlInterface.ControlInterface", label="Control\nInterface", shape=oval, style=bold, target=_top]; "supriya.realtime.GroupInterface.GroupInterface" [URL="../api/supriya/realtime/GroupInterface.html#supriya.realtime.GroupInterface.GroupInterface", color=black, fontcolor=white, label="Group\nInterface", target=_top]; "supriya.realtime.ControlInterface.ControlInterface" -> "supriya.realtime.GroupInterface.GroupInterface"; } subgraph "cluster_supriya.system" { graph [label="supriya.system"]; node [color=3]; "supriya.system.SupriyaObject.SupriyaObject" [URL="../api/supriya/realtime/../system/SupriyaObject.html#supriya.system.SupriyaObject.SupriyaObject", label="Supriya\nObject", target=_top]; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.realtime.ControlInterface.ControlInterface"; }

class supriya.realtime.GroupInterface.GroupInterface(client=None)[source]

Interface to group controls.

>>> server = supriya.Server().boot()
>>> group = supriya.Group().allocate()
>>> group.extend([
...     supriya.Synth(synthdef=supriya.assets.synthdefs.test),
...     supriya.Synth(synthdef=supriya.assets.synthdefs.default),
...     supriya.Synth(synthdef=supriya.assets.synthdefs.default),
...     ])
>>> control = group.controls['amplitude']
>>> group.controls['frequency'] = 777

Attributes Summary

__contains__
__getitem__
__iter__
__len__
__repr__ Return repr(self).
__setitem__
add_controls
as_dict
remove_controls
reset

Special methods

__contains__(item)[source]
__getitem__(item)[source]
__iter__()[source]
__len__()[source]
__repr__()[source]

Return repr(self).

__setitem__(items, values)[source]

Methods

add_controls(control_interface_dict)[source]
as_dict()[source]
remove_controls(control_interface_dict)[source]
reset()[source]

Read-only properties

(ControlInterface).node_id