OscMessage

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.osc" { graph [label="supriya.osc"]; node [color=2]; "supriya.osc.OscMessage.OscMessage" [URL="../api/supriya/osc/OscMessage.html#supriya.osc.OscMessage.OscMessage", color=black, fontcolor=white, label="Osc\nMessage", target=_top]; } subgraph "cluster_supriya.system" { graph [label="supriya.system"]; node [color=3]; "supriya.system.SupriyaObject.SupriyaObject" [URL="../api/supriya/osc/../system/SupriyaObject.html#supriya.system.SupriyaObject.SupriyaObject", label="Supriya\nObject", target=_top]; "supriya.system.SupriyaValueObject.SupriyaValueObject" [URL="../api/supriya/osc/../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.osc.OscMessage.OscMessage"; }

class supriya.osc.OscMessage.OscMessage(address, *contents)[source]

An OSC message.

>>> import supriya.osc
>>> osc_message = supriya.osc.OscMessage('/g_new', 0, 0)
>>> osc_message
OscMessage('/g_new', 0, 0)
>>> datagram = osc_message.to_datagram()
>>> supriya.osc.OscMessage.from_datagram(datagram)
OscMessage('/g_new', 0, 0)

Attributes Summary

__repr__ Return repr(self).
__str__ Return str(self).
address
contents
from_datagram
to_datagram
to_list

Special methods

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

Return self==value.

(SupriyaValueObject).__hash__()

Return hash(self).

__repr__()[source]

Return repr(self).

__str__()[source]

Return str(self).


Methods

to_datagram()[source]
to_list()[source]

Class & static methods

static from_datagram(datagram)[source]

Read-only properties

address
contents