BufferInfoResponse

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.BufferInfoResponse.BufferInfoResponse" [URL="../api/supriya/commands/BufferInfoResponse.html#supriya.commands.BufferInfoResponse.BufferInfoResponse", color=black, fontcolor=white, label="Buffer\nInfo\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.BufferInfoResponse.BufferInfoResponse"; } 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.BufferInfoResponse.BufferInfoResponse(items=None, osc_message=None)[source]

Attributes Summary

Item
__getitem__
__len__
buffer_id
from_osc_message Create response(s) from OSC message.
items

Special methods

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

Return self==value.

__getitem__(item)[source]
(SupriyaValueObject).__hash__()

Return hash(self).

__len__()[source]
(SupriyaObject).__repr__()

Return repr(self).


Methods

(Response).to_dict()

Class & static methods

classmethod from_osc_message(osc_message)[source]

Create response(s) from OSC message.

>>> message = supriya.osc.OscMessage('/b_info', 1100, 512, 1, 44100.0)
>>> supriya.commands.BufferInfoResponse.from_osc_message(message)
BufferInfoResponse(
    items=(
        Item(buffer_id=1100, frame_count=512, channel_count=1, sample_rate=44100.0),
        ),
    )

Read-only properties

buffer_id
items
(Response).osc_message