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:
a repository of send functions that can be used for destinations.
the dictionary of destination data
add a destination and its data with name, object (anything that responds to .set)
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 |
set a range scaler for a destination by name and val
set the offsets to use for a destination, as an event with key and value for every parameter.