# Maths

Maths do the maths !

## Formula

Formula evaluates mathematical expressions over other widgets' values each one of these widgets changes.

```
{
type:'formula',
// etc
}
```

`formula`

- type:
`string`

- default:
`''`

- usage: a mathjs expression in which
`${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`