From 540beabdc2a01bc541f528987b80ee7b1441d048 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 24 Jan 2017 21:03:09 +0100 Subject: [PATCH] docs: formula split option & note about zero based arrays --- resources/docs/user-guide/widgets-specifics/maths.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/docs/user-guide/widgets-specifics/maths.md b/resources/docs/user-guide/widgets-specifics/maths.md index 6a8371ee..999552a5 100644 --- a/resources/docs/user-guide/widgets-specifics/maths.md +++ b/resources/docs/user-guide/widgets-specifics/maths.md @@ -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`