OSC Message Structure

OSC Message Structure

An OSC (Open Sound Control) message consists of several key components, including the OSC Address Pattern, OSC Type Tag String, and the arguments.

Components of an OSC Message

Component Description
OSC Address Pattern A string that starts with a forward slash (/) and identifies the target method or container.
OSC Type Tag String A string that starts with a comma (,) and specifies the types of the arguments that follow.
Arguments The actual data values that are sent with the message, corresponding to the types defined.

Argument Placement

In an OSC message, the arguments follow the OSC Type Tag String. The order of the arguments must match the order of the type tags specified in the OSC Type Tag String. For example, if the type tag string is ",iisfff"    (indicating two integers followed by one string and three floats), the arguments must be provided in that exact sequence.

Example of an OSC Message

For an OSC message with the address pattern /example   , a type tag string of ",iisfff"   , and arguments 100   , 200   , "hello"   , 1.0   , 2.0   , 3.0   , it would be structured as follows:

  • OSC Address Pattern/example   
  • OSC Type Tag String",iisfff"   
  • Arguments100   , 200   , "hello"   , 1.0   , 2.0   , 3.0   

This structure ensures that the receiving application can correctly interpret the data being sent.


References:

Stanford University

R Package Documentation

QuickQ Manual -  OSC

MagicQ Manual Link - OSC

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us