Skip to content

Create OSC Message

This processor will create an OSC message from the provided parameters. This processor will return an error if any of the required parameters are missing or if the parameters are of the wrong type. The address parameter is required, while the args and types parameters are optional. However, if args are provided, then types must also be provided and must match the amount of args provided.

  • typeosc.message.create
  • params:
    • address: OSC address for the message
    • args: (optional) arguments for the OSC message
    • types: (optional) string of OSC types corresponding to the arguments in args

Create an OSC message with the address /test/message and two integer arguments from the payload of the message being processed.

- type: osc.message.create
params:
address: "/test/message"
args: ["{{.Payload[0]}}", "{{.Payload[1]}}"]
types: "ii"