interfaces

class ControlInterface

Bases: supriya.system.SupriyaObject

abstract __setitem__(items, values)
property client
property node_id
abstract reset()
class GroupControl(client=None, name=None)

Bases: object

property client
property group
property name
property node
set(expr)
class GroupInterface(client=None)

Bases: supriya.realtime.interfaces.ControlInterface

Interface to group controls.

>>> server = supriya.Server().boot()
>>> group = supriya.Group().allocate(server)
>>> 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
__contains__(item)
__getitem__(item)
__iter__()
__len__()
__setitem__(items, values)
add_controls(control_interface_dict)
as_dict()
remove_controls(control_interface_dict)
reset()
class SynthControl(client=None, index=None, name=None, range_=None, calculation_rate=None, unit=None, value=None)

Bases: object

__call__(expr)

Call self as a function.

property calculation_rate
property client
property default_value
classmethod from_parameter(parameter, index=0, client=None)
get()
property index
property last_unmapped_value
property name
property node
property range_
reset()
set(expr)
property synth
property unit
property value
class SynthInterface(client=None, synthdef=None)

Bases: supriya.realtime.interfaces.ControlInterface

__contains__(item)
__getitem__(item)
__iter__()
__len__()
__setitem__(items, values)
as_dict()
reset()
property synth_controls
property synthdef