Message
An OSC message consists of an OSC Address Pattern followed by an OSC Type Tag String followed by zero or more OSC Arguments
Test:
Constructor Summary
Public Constructor | ||
public |
constructor(args: array | string, args: ...*) Create a Message instance |
Method Summary
Public Methods | ||
public |
add(item: *) Add an OSC Atomic Data Type to the list of elements |
|
public |
pack(): Uint8Array Interpret the Message as packed binary data |
|
public |
Unpack binary data to read a Message |
Public Constructors
public constructor(args: array | string, args: ...*) source
Create a Message instance
Params:
Name | Type | Attribute | Description |
args | array | string | Address |
|
args | ...* | OSC Atomic Data Types |
Example:
const message = new Message(['test', 'path'], 50, 100.52, 'test')
const message = new Message('/test/path', 51.2)
Public Methods
public add(item: *) source
Add an OSC Atomic Data Type to the list of elements
Params:
Name | Type | Attribute | Description |
item | * |