SynthInterface

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.SynthInterface.SynthInterface" [URL="../api/supriya/realtime/SynthInterface.html#supriya.realtime.SynthInterface.SynthInterface", color=black, fontcolor=white, label="Synth\nInterface", target=_top]; "supriya.realtime.ControlInterface.ControlInterface" -> "supriya.realtime.SynthInterface.SynthInterface"; } 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.SynthInterface.SynthInterface(client=None, synthdef=None)[source]

Attributes Summary

__contains__
__getitem__
__iter__
__len__
__repr__ Get interpreter representation of synth interface.
__setitem__
__str__ Get string representation of synth interface.
as_dict
reset
synth_controls
synthdef

Special methods

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

Get interpreter representation of synth interface.

>>> synth = supriya.Synth()
>>> print(repr(synth.controls))
<SynthInterface: <- Synth: ???>>
__setitem__(items, values)[source]
__str__()[source]

Get string representation of synth interface.

>>> synth = supriya.Synth()
>>> print(str(synth.controls))
<- Synth: ???>: (default)
    (kr) amplitude: 0.1
    (kr) frequency: 440.0
    (kr) gate:      1.0
    (ir) out:       0.0
    (kr) pan:       0.5

Methods

as_dict()[source]
reset()[source]

Read-only properties

(ControlInterface).node_id
synth_controls
synthdef