NodeSetResponse

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.commands" { graph [label="supriya.commands"]; node [color=2]; "supriya.commands.NodeSetResponse.NodeSetResponse" [URL="../api/supriya/commands/NodeSetResponse.html#supriya.commands.NodeSetResponse.NodeSetResponse", color=black, fontcolor=white, label="Node\nSet\nResponse", target=_top]; "supriya.commands.Response.Response" [URL="../api/supriya/commands/Response.html#supriya.commands.Response.Response", label=Response, target=_top]; "supriya.commands.Response.Response" -> "supriya.commands.NodeSetResponse.NodeSetResponse"; } subgraph "cluster_supriya.system" { graph [label="supriya.system"]; node [color=3]; "supriya.system.SupriyaObject.SupriyaObject" [URL="../api/supriya/commands/../system/SupriyaObject.html#supriya.system.SupriyaObject.SupriyaObject", label="Supriya\nObject", target=_top]; "supriya.system.SupriyaValueObject.SupriyaValueObject" [URL="../api/supriya/commands/../system/SupriyaValueObject.html#supriya.system.SupriyaValueObject.SupriyaValueObject", label="Supriya\nValue\nObject", target=_top]; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.system.SupriyaValueObject.SupriyaValueObject"; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "supriya.system.SupriyaValueObject.SupriyaValueObject" -> "supriya.commands.Response.Response"; }

class supriya.commands.NodeSetResponse.NodeSetResponse(node_id=None, items=None, osc_message=None)[source]

Attributes Summary

Item
from_osc_message Create response from OSC message.
items
node_id

Special methods

(SupriyaValueObject).__copy__(*args)
(SupriyaValueObject).__eq__(expr)

Return self==value.

(SupriyaValueObject).__hash__()

Return hash(self).

(SupriyaObject).__repr__()

Return repr(self).


Methods

(Response).to_dict()

Class & static methods

classmethod from_osc_message(osc_message)[source]

Create response from OSC message.

>>> message = supriya.osc.OscMessage('/n_set', 1023, '/one', -1, '/two', 0)
>>> supriya.commands.NodeSetResponse.from_osc_message(message)
NodeSetResponse(
    items=(
        Item(control_index_or_name='/one', control_value=-1),
        Item(control_index_or_name='/two', control_value=0),
        ),
    node_id=1023,
    )

Read-only properties

items
node_id
(Response).osc_message