Skip to main content
namespace ML.SDK
Class | Sealed

OSC


namespace ML.SDK
{
sealed class OSC
}

Summary

OSC (open sound control) Interface which allows to bind functions to be executed when OSC messages received.

Properties

PropertyDesciption
IsClientRunningIs OSC client running? OSC Client runs outside of the MassiveLoop which is possible to send messages to it.
IsServerRunningIs the OSC server running? The OSC Server runs in the MassiveLoop client and accepts incoming messages.

Methods

MethodDescription
HasAddress(string)Returns true if the address is registered.
SendMessage(string, Object[])Sends an OSC message to the specified address with basic parameters. Maximum of four (4) parameters allowed. Allowed parameter types are bool , string and double .
SendMessageTypeTag(string, string, Object[])Send OSC message to the specified address with type tag defined parameters.Maximum of four (4) parameters allowed. Use the Type Tag string to define the types of the variables.Follow the OSC specification on type characters here. Use only the type characters to create the TypeTag string.For example, to send a message with an integer and a float parameter and a string parameter, we need to define our TypeTag string as “ifs”.Note that to send a Boolean parameter, you can use both ‘T’ or ‘F’ character in the TypeTag.The actual tag will be set by the value of the passed parameter.
TryBindAddressPattern(string, Action<Object[]>)Binds an address to a provided handler. Returns true if the operation was successful.
TryUnBindAddressPattern(string)Unbind a previously bound address. Returns true if the operation was successful.