synths

class SynthNewRequest(add_action=None, node_id=None, synthdef=None, target_node_id=None, **kwargs)

Bases: Request

A /s_new request.

>>> import supriya.commands
>>> request = supriya.commands.SynthNewRequest(
...     add_action=supriya.AddAction.ADD_TO_TAIL,
...     node_id=1001,
...     synthdef="test",
...     target_node_id=1000,
...     frequency=443,
...     phase=0.2,
... )
>>> request
SynthNewRequest(
    add_action=AddAction.ADD_TO_TAIL,
    frequency=443,
    node_id=1001,
    phase=0.2,
    synthdef='test',
    target_node_id=1000,
)
>>> request.to_osc()
OscMessage('/s_new', 'test', 1001, 1, 1000, 'frequency', 443, 'phase', 0.2)
property add_action
property kwargs
property node_id
property response_patterns
property synthdef
property target_node_id
to_osc(*, with_placeholders=False)
class TriggerResponse(node_id=None, trigger_id=None, trigger_value=None)

Bases: Response

classmethod from_osc_message(osc_message)
property node_id
property trigger_id
property trigger_value