OSCBus:
Filter:
SenseWorld/Classes (extension) | Control

OSCBus
ExtensionExtension

Put data from an incoming OSC message onto a bus

Description

OSCBus creates an OSC responder for a specific OSC tag, and puts incoming data onto a bus. The data is assumed to be all floats or integers.

See also OSCFunc for issues regarding the NetAddr to supply.

Class Methods

.new

Creates a new OSCBus

Arguments:

cmdName

OSC tag to listen for.

nchan

Number of channels the bus will be. The incoming OSC messages should have a lengt equal to this.

addr

NetAddr from which the OSC message comes

server

An instance of Server. If none is given the default server is used.

Instance Methods

.renew

Create the bus, and add the OSCFunc. This is called automatically when a new instance is created, but it may be used if the method free was called previously during the session.

.free

Free the bus, and remove the OSCFunc.

.scale

Scale factor with which the incoming OSC values is scaled before putting the values on the bus.

.bus

The Bus object to which the data is set.

.oscTag

OSC tag to listen for.

.numChannels

Number of channels of the bus.

.server

The Server object on which the bus is.