OSC callback
<< Click to Display Table of Contents >> Navigation: Callbacks > OSC callback |
Basic syntax:
On OSCMessageReceived(message : OSCMessage) Matching StringConstant
// The StringConstant will be an explicit OSC Address to which this
// callback will respond,
// Use the OSC functions in the system library to access the
// arguments of the received message
End
Extended syntax:
You can use a single callback to handle multiple OSC messages and an extra parameter included with the callback indicates which message actually triggered the callback
On OSCMessageReceived(index : integer, message : OSCMessage) Matching StringConstant, StringConstant, ...
// Each StringConstant must be a unique OSC Address
// The index parameter (zero based) indicates which of the OSC addresses triggered the callback
End