InfluxSpread:
Filter:
Influx/Classes (extension) | Influx

InfluxSpread
ExtensionExtension

Influx variant that can spread influences to multiple destinations.

Description

InfluxSpread can distribute incoming values to multiple destinations, with optional rescaling, and optional mapping to other parameter names.

For an example of influencing several destinations, see InfluxMix

First example - simplest 2 cases:

Class Methods

.sendFuncs

a repository of send functions that can be used for destinations.

Instance Methods

.destsDict

the dictionary of destination data

.addDest

add a destination and its data with name, object (anything that responds to .set)

Arguments:

name

the name for the destination

object

the object that gets the information, often a proxy

specs

the specs for the object's parameters

sendFunc

the function to evaluate when sending. if nil, defaultSendFunc is used. example for a special sendFunc setting influence on an InfluxMix:

offsets

event with key value pairs for parameter offsets to use.

scaler

a scaler to use for influences

.setScaler

set a range scaler for a destination by name and val

.setOffsets

set the offsets to use for a destination, as an event with key and value for every parameter.

Examples