RequestBundle

class supriya.tools.requesttools.RequestBundle(timestamp=None, contents=None)[source]

A Request bundle.

>>> request_one = requesttools.BufferAllocateRequest(
...     buffer_id=23,
...     frame_count=512,
...     channel_count=1,
...     )
>>> request_two = requesttools.BufferAllocateRequest(
...     buffer_id=24,
...     frame_count=512,
...     channel_count=1,
...     )
>>> request_bundle = requesttools.RequestBundle(
...     timestamp=10.5,
...     contents=[request_one, request_two],
...     )
>>> print(format(request_bundle))
supriya.tools.requesttools.RequestBundle(
    timestamp=10.5,
    contents=(
        supriya.tools.requesttools.BufferAllocateRequest(
            buffer_id=23,
            frame_count=512,
            channel_count=1,
            ),
        supriya.tools.requesttools.BufferAllocateRequest(
            buffer_id=24,
            frame_count=512,
            channel_count=1,
            ),
        ),
    )
>>> print(format(request_bundle.to_osc_bundle(True)))
supriya.tools.osctools.OscBundle(
    timestamp=10.5,
    contents=(
        supriya.tools.osctools.OscMessage(
            '/b_alloc',
            23,
            512,
            1
            ),
        supriya.tools.osctools.OscMessage(
            '/b_alloc',
            24,
            512,
            1
            ),
        ),
    )
>>> request_bundle.to_list(True)
[10.5, [['/b_alloc', 23, 512, 1], ['/b_alloc', 24, 512, 1]]]

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.RequestBundle.RequestBundle" [color=black, fontcolor=white, group=1, label=<<B>RequestBundle</B>>, shape=box, style="filled, rounded"]; } 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.RequestBundle.RequestBundle"; }

Bases

Attribute summary

communicate([server])
contents
timestamp
to_list([with_textual_osc_command])
to_osc_bundle([with_textual_osc_command])
__copy__(*args)
__eq__(expr)
__format__([format_specification]) Formats Supriya object.
__hash__()
__repr__() Gets interpreter representation of Supriya object.

Read-only properties

RequestBundle.contents
RequestBundle.timestamp

Methods

RequestBundle.communicate(server=None)[source]
RequestBundle.to_list(with_textual_osc_command=False)[source]
RequestBundle.to_osc_bundle(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.

(SupriyaValueObject).__hash__()
(SupriyaObject).__repr__()

Gets interpreter representation of Supriya object.

Returns string.