ControlBusGetContiguousRequest

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.ControlBusGetContiguousRequest.ControlBusGetContiguousRequest" [URL="../api/supriya/commands/ControlBusGetContiguousRequest.html#supriya.commands.ControlBusGetContiguousRequest.ControlBusGetContiguousRequest", color=black, fontcolor=white, label="Control\nBus\nGet\nContiguous\nRequest", target=_top]; "supriya.commands.Request.Request" [URL="../api/supriya/commands/Request.html#supriya.commands.Request.Request", label=Request, shape=oval, style=bold, target=_top]; "supriya.commands.Requestable.Requestable" [URL="../api/supriya/commands/Requestable.html#supriya.commands.Requestable.Requestable", label=Requestable, target=_top]; "supriya.commands.Request.Request" -> "supriya.commands.ControlBusGetContiguousRequest.ControlBusGetContiguousRequest"; "supriya.commands.Requestable.Requestable" -> "supriya.commands.Request.Request"; } 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.Requestable.Requestable"; }

class supriya.commands.ControlBusGetContiguousRequest.ControlBusGetContiguousRequest(index_count_pairs=None)[source]

A /c_getn request.

>>> import supriya
>>> server = supriya.Server().boot()
>>> request = supriya.commands.ControlBusGetContiguousRequest(
...     index_count_pairs=[
...         (0, 2),
...         (4, 1),
...         (8, 2),
...         (12, 1),
...         ],
...     )
>>> request
ControlBusGetContiguousRequest(
    index_count_pairs=(
        (0, 2),
        (4, 1),
        (8, 2),
        (12, 1),
        ),
    )
>>> request.to_osc(True)
OscMessage('/c_getn', 0, 2, 4, 1, 8, 2, 12, 1)
>>> with server.osc_io.capture() as transcript:
...     request.communicate(server=server)
...
ControlBusSetContiguousResponse(
    items=(
        Item(bus_values=(0.0, 0.0), starting_bus_id=0),
        Item(bus_values=(0.0,), starting_bus_id=4),
        Item(bus_values=(0.0, 0.0), starting_bus_id=8),
        Item(bus_values=(0.0,), starting_bus_id=12),
        ),
    )
>>> for entry in transcript:
...     (entry.label, entry.message)
...
('S', OscMessage(41, 0, 2, 4, 1, 8, 2, 12, 1))
('R', OscMessage('/c_setn', 0, 2, 0.0, 0.0, 4, 1, 0.0, 8, 2, 0.0, 0.0, 12, 1, 0.0))

Attributes Summary

index_count_pairs
request_id
response_patterns
to_osc

Special methods

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

Return self==value.

(SupriyaValueObject).__hash__()

Return hash(self).

(SupriyaObject).__repr__()

Return repr(self).


Methods

(Requestable).communicate(server=None, sync=True, timeout=1.0, apply_local=True)
(Request).to_datagram()
(Request).to_list(with_request_name=False)
to_osc(with_request_name=False)[source]

Read-only properties

(Requestable).condition
index_count_pairs
(Request).request_name
(Requestable).response
response_patterns