Group

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.Group.Group" [URL="../api/supriya/realtime/Group.html#supriya.realtime.Group.Group", color=black, fontcolor=white, label=Group, target=_top]; "supriya.realtime.Node.Node" [URL="../api/supriya/realtime/Node.html#supriya.realtime.Node.Node", label="Node", shape=oval, style=bold, target=_top]; "supriya.realtime.RootNode.RootNode" [URL="../api/supriya/realtime/RootNode.html#supriya.realtime.RootNode.RootNode", label="Root\nNode", target=_top]; "supriya.realtime.ServerObjectProxy.ServerObjectProxy" [URL="../api/supriya/realtime/ServerObjectProxy.html#supriya.realtime.ServerObjectProxy.ServerObjectProxy", label="Server\nObject\nProxy", shape=oval, style=bold, target=_top]; "supriya.realtime.Group.Group" -> "supriya.realtime.RootNode.RootNode"; "supriya.realtime.Node.Node" -> "supriya.realtime.Group.Group"; "supriya.realtime.ServerObjectProxy.ServerObjectProxy" -> "supriya.realtime.Node.Node"; } 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]; } subgraph "cluster_uqbar.containers" { graph [label="uqbar.containers"]; node [color=4]; "uqbar.containers.UniqueTreeContainer.UniqueTreeContainer" [label="Unique\nTree\nContainer"]; "uqbar.containers.UniqueTreeNode.UniqueTreeNode" [label="Unique\nTree\nNode"]; "uqbar.containers.UniqueTreeNode.UniqueTreeNode" -> "uqbar.containers.UniqueTreeContainer.UniqueTreeContainer"; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "builtins.object" -> "uqbar.containers.UniqueTreeNode.UniqueTreeNode"; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.realtime.ServerObjectProxy.ServerObjectProxy"; "uqbar.containers.UniqueTreeContainer.UniqueTreeContainer" -> "supriya.realtime.Group.Group"; "uqbar.containers.UniqueTreeNode.UniqueTreeNode" -> "supriya.realtime.Node.Node"; }

class supriya.realtime.Group.Group(children=None, name=None, node_id_is_permanent=False)[source]

A group.

>>> import supriya.realtime
>>> server = supriya.realtime.Server()
>>> server.boot()
<Server: udp://127.0.0.1:57751, 8i8o>
>>> group = supriya.realtime.Group()
>>> group.allocate()
<+ Group: 1000>
>>> group.free()
<- Group: ???>
>>> server.quit()
<Server: offline>

Attributes Summary

__graph__
__setitem__ Sets expr in self at index i.
__str__ Return str(self).
allocate
controls
free

Special methods

(UniqueTreeContainer).__contains__(expr)
(UniqueTreeContainer).__delitem__(i)
(Node).__float__()
(UniqueTreeContainer).__getitem__(expr)
__graph__()[source]
(Node).__int__()
(UniqueTreeContainer).__iter__()
(UniqueTreeContainer).__len__()
(Node).__repr__()

Return repr(self).

__setitem__(i, expr)[source]

Sets expr in self at index i.

>>> group_one = Group()
>>> group_two = Group()
>>> group_one.append(group_two)
__str__()[source]

Return str(self).


Methods

allocate(add_action=None, node_id_is_permanent=False, sync=False, target_node=None)[source]
(UniqueTreeContainer).append(expr)
(UniqueTreeContainer).depth_first(top_down=True)
(UniqueTreeContainer).extend(expr)
free()[source]
(UniqueTreeContainer).index(expr)
(UniqueTreeContainer).insert(i, expr)
(Node).pause()
(UniqueTreeContainer).pop(i=-1)
(UniqueTreeNode).precede_by(expr)
(UniqueTreeContainer).recurse()
(UniqueTreeContainer).remove(node)
(UniqueTreeNode).replace_with(expr)
(UniqueTreeNode).succeed_by(expr)
(Node).unpause()

Class & static methods

static (Node).expr_as_target(expr)

Read/write properties

(UniqueTreeNode).name

Read-only properties

(UniqueTreeContainer).children
controls
(UniqueTreeNode).depth
(UniqueTreeNode).graph_order
(Node).is_allocated
(Node).is_paused
(Node).node_id
(Node).node_id_is_permanent
(UniqueTreeNode).parent
(UniqueTreeNode).parentage
(UniqueTreeNode).root