widgets: add math widget, the ultimate helper (not safe yet)

This commit is contained in:
jean-emmanuel 2017-01-24 09:08:44 +01:00
parent 2403ad2336
commit 27a0f31ff4
5 changed files with 144 additions and 1 deletions

View file

@ -0,0 +1,24 @@
# Maths
Maths do the maths !
----
## Math
Math evaluates mathematical expressions over other widgets' values each one of these widgets changes.
```js
{
type:'math',
// etc
}
```
#### `formula`
- type: `string`
- default: `''`
- usage: a javascript expression in which
- `${id}` will be replaced the `id`'s value
- example: `${fader_1} * 2 + ${fader_2}`