docs: formula split option & note about zero based arrays

This commit is contained in:
jean-emmanuel 2017-01-24 21:03:09 +01:00
parent 0381e0aade
commit 540beabdc2

View file

@ -20,5 +20,12 @@ Formula evaluates mathematical expressions over other widgets' values each one o
- type: `string`
- default: `''`
- usage: a [mathjs](http://mathjs.org/docs/expressions/syntax.html) expression in which
- `${id}` will be replaced the `id`'s value
- example: `${fader_1} * 2 + ${fader_2}`
- `${id}` will be replaced the `id`'s value
- example: `${fader_1} * 2 + ${fader_2}`
- **important note**: contrary to what is stated in *mathjs*' documentation, **matrix indexes are zero-based** here
#### `split`
- type: `object`
- default: `[]`
- usage: specify a different `address` for each item of the widget's value : `['/a', '/b']`
- note: only use this is the formula return an `array`