OSCMapperElement:
Filter:
OSCMapper/Classes (extension) | OSCMapper

OSCMapperElement
ExtensionExtension

Base element for OSCMapper receivers

Description

Base element for receivers of OSC messages from OSCMapper. Handles registration and transformation of the values. This should be handeled as an abstract class and the following classes should be used instead

Class Methods

.new

Arguments:

altName

Alternatev name under which the element can also be accessed from via the OSCMapper

defaultValue

The default value which will be put out as long as no message was received.

transformer

An optional function which will transform the received values.

callback

A function which will be called. First argument is the received value.

lag

Will be used as a smoothing on the Ndef.

Instance Methods

.asNdef

Returns the values as Ndef, see OSCMapper: Examples for usage.

.asBus

Returns the values in a Bus, see OSCMapper: Examples for usage.

.asPdefn

Returns the values as Pdefn, see OSCMapper: Examples for usage.

.value

Returns latest received value.

.transformer

See OSCMapperElement: *new

.callback

See OSCMapperElement: *new

Examples

See OSCMapper: Examples.