Classes | External Control > OSC > Dispatchers

OSCMessagePatternDispatcher : OSCMessageDispatcher : AbstractWrappingDispatcher : AbstractDispatcher : Object

The default pattern matching dispatcher for OSCFunc and OSCdef.

Description

OSCMessageDispatcher dispatches incoming OSC messages to matching functions, using pattern matching to see if regular expressions wildcards in the incoming message's address pattern match one of this dispatcher's OSCFuncs' paths. Normally users should not have to create or message instances of this class directly. For details on OSC pattern matching, see http://opensoundcontrol.org/spec-1_0

Class Methods

Inherited class methods

Instance Methods

.value(msg, time, addr, recvPort)

Attempt to match an incoming OSC message with this dispatcher's responder funcs, and evaluate their functions for all matches found.

Arguments:

msg

The OSC message as an Array in the form [OSCAddress, other args].

time

A Float indicating the time the incoming message was sent.

addr

A NetAddr indicating the source of the message.

recvPort

An Integer indicating the port on which the message was received.

.typeKey

Returns 'OSC unmatched'.

Returns:

A Symbol.

Inherited instance methods