AudioInputBusGroup

class supriya.tools.servertools.AudioInputBusGroup(server)[source]

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } subgraph cluster_bindingtools { graph [label=bindingtools]; "supriya.tools.bindingtools.BindingTarget.BindingTarget" [color=1, group=0, label=BindingTarget, shape=oval, style=bold]; } subgraph cluster_servertools { graph [label=servertools]; "supriya.tools.servertools.AudioInputBusGroup.AudioInputBusGroup" [color=black, fontcolor=white, group=2, label=<<B>AudioInputBusGroup</B>>, shape=box, style="filled, rounded"]; "supriya.tools.servertools.BusGroup.BusGroup" [color=3, group=2, label=BusGroup, shape=box]; "supriya.tools.servertools.ServerObjectProxy.ServerObjectProxy" [color=3, group=2, label=ServerObjectProxy, shape=oval, style=bold]; "supriya.tools.servertools.BusGroup.BusGroup" -> "supriya.tools.servertools.AudioInputBusGroup.AudioInputBusGroup"; "supriya.tools.servertools.ServerObjectProxy.ServerObjectProxy" -> "supriya.tools.servertools.BusGroup.BusGroup"; } subgraph cluster_systemtools { graph [label=systemtools]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" [color=4, group=3, label=AbstractBase, shape=box]; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" [color=4, group=3, label=SupriyaObject, shape=box]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" -> "supriya.tools.systemtools.SupriyaObject.SupriyaObject"; } "builtins.object" -> "supriya.tools.systemtools.SupriyaObject.AbstractBase"; "supriya.tools.bindingtools.BindingTarget.BindingTarget" -> "supriya.tools.servertools.BusGroup.BusGroup"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.bindingtools.BindingTarget.BindingTarget"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.servertools.ServerObjectProxy.ServerObjectProxy"; }

Attribute summary

allocate()
ar() Creates an audio-rate input ugen subgraph.
bus_id
buses
calculation_rate
fill(value)
free()
get()
index(item)
is_allocated
is_bound
kr() Creates a control-rate input ugen subgraph.
map_symbol
server
unbind([binding])
__contains__(item)
__eq__(expr) Is true when ID of expr equals ID of Supriya object.
__float__()
__format__([format_specification]) Formats Supriya object.
__getitem__(item)
__hash__() Hashes Supriya object.
__int__()
__iter__()
__len__()
__repr__()
__str__()

Read-only properties

(BusGroup).bus_id
(BusGroup).buses
(BusGroup).calculation_rate
(BusGroup).is_allocated
(BindingTarget).is_bound
(BusGroup).map_symbol
(ServerObjectProxy).server

Methods

AudioInputBusGroup.allocate()[source]
(BusGroup).ar()

Creates an audio-rate input ugen subgraph.

>>> from supriya.tools import servertools
>>> audio_bus_group = servertools.BusGroup(
...     bus_id=8,
...     bus_count=4,
...     calculation_rate='audio',
...     )
>>> ugen = audio_bus_group.ar()
>>> print(str(ugen))
SynthDef 0af6b551a643cad01e9994845ff4ae40 {
    const_0:8.0 -> 0_In[0:bus]
}
>>> control_bus_group = servertools.BusGroup(
...     bus_id=8,
...     bus_count=4,
...     calculation_rate='control',
...     )
>>> ugen = control_bus_group.ar()
>>> print(str(ugen))
SynthDef ecaa7fe9417cb0742cdcda87657fe9de {
    const_0:8.0 -> 0_In[0:bus]
    0_In[0] -> 1_K2A[0:source]
    0_In[1] -> 2_K2A[0:source]
    0_In[2] -> 3_K2A[0:source]
    0_In[3] -> 4_K2A[0:source]
}

Returns ugen.

(BusGroup).fill(value)
AudioInputBusGroup.free()[source]
(BusGroup).get()
(BusGroup).index(item)
(BusGroup).kr()

Creates a control-rate input ugen subgraph.

>>> from supriya.tools import servertools
>>> audio_bus_group = servertools.BusGroup(
...     bus_id=8,
...     bus_count=4,
...     calculation_rate='audio',
...     )
>>> ugen = audio_bus_group.kr()
>>> print(str(ugen))
SynthDef ffeda833c370bc644251437469e243ef {
    const_0:8.0 -> 0_In[0:bus]
    0_In[0] -> 1_A2K[0:source]
    0_In[1] -> 2_A2K[0:source]
    0_In[2] -> 3_A2K[0:source]
    0_In[3] -> 4_A2K[0:source]
}
>>> control_bus_group = servertools.BusGroup(
...     bus_id=8,
...     bus_count=4,
...     calculation_rate='control',
...     )
>>> ugen = control_bus_group.kr()
>>> print(str(ugen))
SynthDef b64857a04b384841694ba85f74f0fd0b {
    const_0:8.0 -> 0_In[0:bus]
}

Returns ugen.

(BindingTarget).unbind(binding=None)

Special methods

(BusGroup).__contains__(item)
(SupriyaObject).__eq__(expr)

Is true when ID of expr equals ID of Supriya object. Otherwise false.

Returns boolean.

(BusGroup).__float__()
(SupriyaObject).__format__(format_specification='')

Formats Supriya object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

(BusGroup).__getitem__(item)
(SupriyaObject).__hash__()

Hashes Supriya object.

Required to be explicitely re-defined on Python 3 if __eq__ changes.

Returns integer.

(BusGroup).__int__()
(BusGroup).__iter__()
(BusGroup).__len__()
(BusGroup).__repr__()
(BusGroup).__str__()