OscMessage

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

An OSC message.

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

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_osctools { graph [label=osctools]; "supriya.tools.osctools.OscMessage.OscMessage" [color=black, fontcolor=white, group=1, label=<<B>OscMessage</B>>, shape=box, style="filled, rounded"]; "supriya.tools.osctools.OscMixin.OscMixin" [color=2, group=1, label=OscMixin, shape=oval, style=bold]; "supriya.tools.osctools.OscMixin.OscMixin" -> "supriya.tools.osctools.OscMessage.OscMessage"; } 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.osctools.OscMixin.OscMixin"; }

Bases

Attribute summary

address
contents
format_datagram(datagram)
from_datagram(datagram)
to_datagram()
to_list()
__copy__(*args)
__eq__(expr)
__format__([format_specification]) Formats Supriya object.
__hash__()
__repr__()
__str__() Gets string representation of OSC object.

Read-only properties

OscMessage.address
OscMessage.contents

Methods

OscMessage.to_datagram()[source]
OscMessage.to_list()[source]

Class & static methods

(OscMixin).format_datagram(datagram)
static OscMessage.from_datagram(datagram)[source]

Special methods

(SupriyaValueObject).__copy__(*args)
OscMessage.__eq__(expr)[source]
(SupriyaObject).__format__(format_specification='')

Formats Supriya object.

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

Returns string.

OscMessage.__hash__()[source]
OscMessage.__repr__()[source]
(OscMixin).__str__()

Gets string representation of OSC object.

size 164
   0   2f 64 5f 72  65 63 76 00  2c 62 62 00  00 00 00 6b   |/d_recv.,bb....k|
  16   53 43 67 66  00 00 00 02  00 01 04 74  65 73 74 00   |SCgf.......test.|
  32   00 00 02 43  dc 00 00 00  00 00 00 00  00 00 00 00   |...C............|
  48   00 00 00 00  00 00 02 06  53 69 6e 4f  73 63 02 00   |........SinOsc..|
  64   00 00 02 00  00 00 01 00  00 ff ff ff  ff 00 00 00   |................|
  80   00 ff ff ff  ff 00 00 00  01 02 03 4f  75 74 02 00   |...........Out..|
  96   00 00 02 00  00 00 00 00  00 ff ff ff  ff 00 00 00   |................|
 112   01 00 00 00  00 00 00 00  00 00 00 00  00 00 00 24   |...............$|
 128   2f 73 5f 6e  65 77 00 00  2c 73 69 69  69 00 00 00   |/s_new..,siii...|
 144   74 65 73 74  00 00 00 00  00 00 03 e9  00 00 00 00   |test............|
 160   00 00 00 01                                          |....|