SynthNewRequest

class supriya.tools.requesttools.SynthNewRequest(add_action=None, node_id=None, synthdef=None, target_node_id=None, **kwargs)[source]

A /s_new request.

>>> from supriya.tools import requesttools
>>> from supriya.tools import servertools
>>> request = requesttools.SynthNewRequest(
...     add_action=servertools.AddAction.ADD_TO_TAIL,
...     node_id=1001,
...     synthdef='test',
...     target_node_id=1000,
...     frequency=443,
...     phase=0.2
...     )
>>> request
SynthNewRequest(
    add_action=AddAction.ADD_TO_TAIL,
    node_id=1001,
    synthdef='test',
    target_node_id=1000,
    frequency=443,
    phase=0.2
    )
>>> message = request.to_osc_message()
>>> message
OscMessage(9, 'test', 1001, 1, 1000, 'frequency', 443, 'phase', 0.2)
>>> message.address == requesttools.RequestId.SYNTH_NEW
True

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=1, group=0, label=object, shape=box]; } subgraph cluster_requesttools { graph [label=requesttools]; "supriya.tools.requesttools.Request.Request" [color=2, group=1, label=Request, shape=oval, style=bold]; "supriya.tools.requesttools.SynthNewRequest.SynthNewRequest" [color=black, fontcolor=white, group=1, label=<<B>SynthNewRequest</B>>, shape=box, style="filled, rounded"]; "supriya.tools.requesttools.Request.Request" -> "supriya.tools.requesttools.SynthNewRequest.SynthNewRequest"; } subgraph cluster_systemtools { graph [label=systemtools]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" [color=3, group=2, label=AbstractBase, shape=box]; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" [color=3, group=2, label=SupriyaObject, shape=box]; "supriya.tools.systemtools.SupriyaValueObject.SupriyaValueObject" [color=3, group=2, label=SupriyaValueObject, shape=box]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" -> "supriya.tools.systemtools.SupriyaObject.SupriyaObject"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.systemtools.SupriyaValueObject.SupriyaValueObject"; } "builtins.object" -> "supriya.tools.systemtools.SupriyaObject.AbstractBase"; "supriya.tools.systemtools.SupriyaValueObject.SupriyaValueObject" -> "supriya.tools.requesttools.Request.Request"; }

Attribute summary

add_action
communicate([message, server, sync, timeout])
condition
node_id
request_command
request_id
response
response_callback
response_specification
synthdef
target_node_id
to_list([with_textual_osc_command])
to_osc_message([with_textual_osc_command])
__copy__(*args)
__eq__(expr)
__format__([format_specification]) Formats Supriya object.
__getattr__(name)
__hash__()
__repr__() Gets interpreter representation of Supriya object.

Read-only properties

SynthNewRequest.add_action
(Request).condition
SynthNewRequest.node_id
(Request).request_command
SynthNewRequest.request_id
(Request).response_callback
SynthNewRequest.response_specification
SynthNewRequest.synthdef
SynthNewRequest.target_node_id

Read/write properties

(Request).response

Methods

(Request).communicate(message=None, server=None, sync=True, timeout=1.0)
(Request).to_list(with_textual_osc_command=False)
SynthNewRequest.to_osc_message(with_textual_osc_command=False)[source]

Special methods

(SupriyaValueObject).__copy__(*args)
(SupriyaValueObject).__eq__(expr)
(SupriyaObject).__format__(format_specification='')

Formats Supriya object.

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

Returns string.

SynthNewRequest.__getattr__(name)[source]
(SupriyaValueObject).__hash__()
(SupriyaObject).__repr__()

Gets interpreter representation of Supriya object.

Returns string.