osc: use 'address' instead of 'path' everywhere to avoid confusion
This commit is contained in:
parent
b397115e54
commit
4552bd6657
29 changed files with 80 additions and 77 deletions
|
|
@ -85,10 +85,10 @@ A widget object is a javascript object. All widgets share a set of generic prope
|
|||
- each element of the `array` must be a string formatted as follows : `"ip:port"`
|
||||
- multiple targets can be specified : `["ip1:port1","ip2:port2"]`
|
||||
|
||||
#### `path`
|
||||
#### `address`
|
||||
- type: `string`
|
||||
- default: `/widgets_id`
|
||||
- usage: this is the `path` of the osc messages sent by the widget
|
||||
- usage: this is the `address` of the osc messages sent by the widget
|
||||
|
||||
#### `preArgs`
|
||||
- type: `array`
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Multifader creates a row of vertical faders that respond to the same gestures.
|
|||
- usage: number of faders in the row, each fader will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
|
||||
- `id`: same as the widget's with `/i` appended to it
|
||||
- `label`: `i`
|
||||
- `path`: same as the widget's with `/i` appended to it
|
||||
- `address`: same as the widget's with `/i` appended to it
|
||||
|
||||
#### `traversing`
|
||||
- type: `boolean`
|
||||
|
|
@ -46,7 +46,7 @@ Multifader creates a row of vertical faders that respond to the same gestures.
|
|||
- usage: defines the number of columns and and rows. Each cell will contain a toggle button that will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
|
||||
- `id`: same as the widget's with `/i` appended to it
|
||||
- `label`: `i`
|
||||
- `path`: same as the widget's with `/i` appended to it
|
||||
- `address`: same as the widget's with `/i` appended to it
|
||||
|
||||
#### `traversing`
|
||||
- type: `boolean`
|
||||
|
|
@ -72,7 +72,7 @@ Multifader creates a row of vertical faders that respond to the same gestures.
|
|||
- usage: defines the number of columns and and rows. Each cell will contain a push button that will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
|
||||
- `id`: same as the widget's with `/i` appended to it
|
||||
- `label`: `i`
|
||||
- `path`: same as the widget's with `/i` appended to it
|
||||
- `address`: same as the widget's with `/i` appended to it
|
||||
|
||||
#### `traversing`
|
||||
- type: `boolean`
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ Pads are multidimensional widgets that output multiple values.
|
|||
- type: `boolean|object`
|
||||
- default: `false`
|
||||
- usage:
|
||||
- set to `true` to send separate osc messages for `x` and `y` axis. The `path` will be the same as the widget's with `/x` or `/y` appended to it
|
||||
- can be set as an object to specify a different `path` : `{x:'/osc_path_x', y:'/osc_path_y'}`
|
||||
- note: the widget will only respond to its original osc path, not to the splitted version
|
||||
- set to `true` to send separate osc messages for `x` and `y` axis. The `address` will be the same as the widget's with `/x` or `/y` appended to it
|
||||
- can be set as an object to specify a different `address` : `{x:'/osc_address_x', y:'/osc_address_y'}`
|
||||
- note: the widget will only respond to its original osc address, not to the splitted version
|
||||
|
||||
----
|
||||
|
||||
|
|
@ -98,9 +98,9 @@ Pads are multidimensional widgets that output multiple values.
|
|||
- type: `boolean|object`
|
||||
- default: `false`
|
||||
- usage:
|
||||
- set to `true` to send separate osc messages for each point's `x` and `y` axis. The `path` will be the same as the widget's with `/N/x` or `/N/y` appended to it, where `N` is the point's id.
|
||||
- can be set as an object to specify a different `path` : `{0:'/osc_path/0', 1:'/osc_path_/1'}` (each path will be appended `/x` or `y`)
|
||||
- note: the widget will only respond to its original osc path, not to the splitted version
|
||||
- set to `true` to send separate osc messages for each point's `x` and `y` axis. The `address` will be the same as the widget's with `/N/x` or `/N/y` appended to it, where `N` is the point's id.
|
||||
- can be set as an object to specify a different `address` : `{0:'/osc_address/0', 1:'/osc_address_/1'}` (each address will be appended `/x` or `y`)
|
||||
- note: the widget will only respond to its original osc address, not to the splitted version
|
||||
|
||||
----
|
||||
|
||||
|
|
@ -128,5 +128,5 @@ RGB is a variant of XY, it outputs rgb values between 0 and 255.
|
|||
- type: `boolean|object`
|
||||
- default: `false`
|
||||
- usage:
|
||||
- set to `true` to send separate osc messages for `r` and `g` & `b`. The `path` will be the same as the widget's with `/r`, `/g` or `/b` appended to it
|
||||
- can be set as an object to specify a different `path` : `{r:'/osc_path_r', g:'/osc_path_g',b:'/osc_path_b'}`
|
||||
- set to `true` to send separate osc messages for `r` and `g` & `b`. The `address` will be the same as the widget's with `/r`, `/g` or `/b` appended to it
|
||||
- can be set as an object to specify a different `address` : `{r:'/osc_address_r', g:'/osc_address_g',b:'/osc_address_b'}`
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ range: {
|
|||
- default: `false`
|
||||
- usage: set to true to display a vu-meter next in the fader
|
||||
- the meter's `id` will be the same as the widget's with `/meter` appended to it
|
||||
- the meter's `path `will be the same as the widget's with `/meter` appended to it
|
||||
- the meter's `address `will be the same as the widget's with `/meter` appended to it
|
||||
|
||||
|
||||
#### `css`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue