diff --git a/resources/docs/docs/getting-started/introduction.md b/resources/docs/docs/getting-started/introduction.md index 3c549329..620600e2 100644 --- a/resources/docs/docs/getting-started/introduction.md +++ b/resources/docs/docs/getting-started/introduction.md @@ -26,30 +26,30 @@ The **client** requires Chromium/Chrome `60` or later to work (Linux, MacOS, Win ## Installation -### Linux +??? example "Linux" -**Ubuntu / Debian** + **Ubuntu / Debian** -- [Download](/download) `open-stage-control-VERSION-ARCH.deb` -- Install it by running this as root in a terminal: -```bash -dpkg -i path/to/open-stage-control-VERSION-ARCH.deb -``` + - [Download](/download) `open-stage-control-VERSION-ARCH.deb` + - Install it by running this as root in a terminal: + ```bash + dpkg -i path/to/open-stage-control-VERSION-ARCH.deb + ``` -**Other linux distributions** + **Other linux distributions** -- [Download](/download) `open-stage-control-VERSION-linux-ARCH.zip` -- Extract it in the location of your choice -- The file inside it named `open-stage-control` is the app's main executable + - [Download](/download) `open-stage-control-VERSION-linux-ARCH.zip` + - Extract it in the location of your choice + - The file inside it named `open-stage-control` is the app's main executable -### Mac +??? example "Mac" -- [Download](/download) `open-stage-control-VERSION-osx.zip` -- Extract it in the location of your choice -- Drag `open-stage-control.app` in your `Application` folder + - [Download](/download) `open-stage-control-VERSION-osx.zip` + - Extract it in the location of your choice + - Drag `open-stage-control.app` in your `Application` folder -### Windows +??? example "Windows" -- [Download](/download) `open-stage-control-VERSION-win32-ARCH.zip` -- Extract it in the location of your choice -- The file inside it named `open-stage-control.exe` is the app's main executable + - [Download](/download) `open-stage-control-VERSION-win32-ARCH.zip` + - Extract it in the location of your choice + - The file inside it named `open-stage-control.exe` is the app's main executable diff --git a/resources/docs/docs/getting-started/server-configuration.md b/resources/docs/docs/getting-started/server-configuration.md index 60e34c30..daee9375 100644 --- a/resources/docs/docs/getting-started/server-configuration.md +++ b/resources/docs/docs/getting-started/server-configuration.md @@ -1,180 +1,148 @@ -The **server** can be configured with many options, either from a terminal or with the help of the **launcher**. The available options are described here. +The **server** can be configured with many options, either from a terminal or with the help of the **launcher**. -## Options +!!! abstract "Options" -#### `send` + === "send" -Defines the default osc/midi targets. These will be added to the widget's individual targets. Must be formatted as follows: + Defines the default osc/midi targets. These will be added to the widget's individual targets. Must be formatted as follows: -- `ip_address:port` -- `host_name:port` -- `midi:device_name` + - `ip_address:port` + - `host_name:port` + - `midi:device_name` ----- + === "load" -#### `load` + Path to a session file. All clients connecting the server will load it. -Path to a session file. All clients connecting the server will load it. + === "state" ----- + Path to a state file. All clients connecting the server will load it. -#### `state` -Path to a state file. All clients connecting the server will load it. + === "custom-module" + Path to a custom module file. Additional options can be passed after the path, they'll be accessible in the custom module's context. ----- -#### `custom-module` + === "port" -Path to a custom module file. Additional options can be passed after the path, they'll be accessible in the custom module's context. + HTTP port for the server (default: `8080`). ----- -#### `port` + === "osc-port" -HTTP port for the server (default: `8080`). + OSC (udp) input port (default: `port`). ----- -#### `osc-port` + === "tcp-port" -OSC (udp) input port (default: `port`). + OSC (tcp) input port/ ----- -#### `tcp-port` + === "tcp-targets" -OSC (tcp) input port/ + TCP servers to connect to. When sending osc messages, if the target matches one of these, TCP protocol will be used instead of UDP. Must be formatted as: ----- + - `ip_address:port` + - `host_name:port` -#### `tcp-targets` -TCP servers to connect to. When sending osc messages, if the target matches one of these, TCP protocol will be used instead of UDP. Must be formatted as: + === "midi" -- `ip_address:port` -- `host_name:port` + [MIDI configuration](../midi/midi-configuration). ----- -#### `midi` + === "debug" -[MIDI configuration](../midi/midi-configuration). + Print sent and receiced messages in the console. This may impact performances and should not be enabled in production. ----- -#### `debug` -Print sent and receiced messages in the console. This may impact performances and should not be enabled in production. + === "no-gui" + Disable built-in client window. ----- -#### `no-gui` + === "fullscreen" -Disable built-in client window. + Start the built-in client window in fullscreen. ----- -#### `fullscreen` + === "theme" -Start the built-in client window in fullscreen. + Theme names or paths. See [Themes](../customization/themes). ----- -#### `theme` + === "client-options" -Theme names or paths. See [Themes](../customization/themes). + Default [client options](../client-options). ----- -#### `client-options` + === "disable-vsync" -Default [client options](../client-options). + Disable built-in client window's vertical synchronization. ----- -#### `disable-vsync` + === "force-gpu" -Disable built-in client window's vertical synchronization. + Disable built-in client window's gpu blacklist (may improve rendering performance in some cases). ----- -#### `force-gpu` + === "read-only" -Disable built-in client window's gpu blacklist (may improve rendering performance in some cases). + Disable session editing, and file saving. ----- -#### `read-only` + === "remote-saving" -Disable session editing, and file saving. + Disable file saving for hosts that don't match the regular expresion. ----- + Sessions are saved and opened on the server's filesystem. It is possible to limit this feature to specific client with a regular expression. For example, `"127.0.0.1|192.168.0.10"` disables remote saving except for clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`. -#### `remote-saving` -Disable file saving for hosts that don't match the regular expresion. + === "remote-root" -Sessions are saved and opened on the server's filesystem. It is possible to limit this feature to specific client with a regular expression. For example, `"127.0.0.1|192.168.0.10"` disables remote saving except for clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`. + Set file browsing root folder. ----- -#### `remote-root` + === "instance-name" -Set file browsing root folder. + Used to differenciate multiple instances in a zeroconf network. ----- -#### `instance-name` +!!! abstract "Command-line options" -Used to differenciate multiple instances in a zeroconf network. + The following options can only be set from a terminal. ----- + === "disable-gpu" + Disable hardware acceleration for the launcher window and the built-in client window. -## Other options -The following options can only be set from a terminal: + === "inspect" ----- + Enable node inspector. -#### `disable-gpu` -Disable hardware acceleration for the launcher window and the built-in client window. + === "cache-dir" ----- + Override default cache directory (contains browser cache and localStorage data). -#### `inspect` -Enable node inspector. + === "config-file" ----- + Override default config file location (contains session history and launcher config). Defaults to `cache-dir/config.json`. -#### `cache-dir` -Override default cache directory (contains browser cache and localStorage data). + === "help" ----- + Show help. -#### `config-file` -Override default config file location (contains session history and launcher config). Defaults to `cache-dir/config.json`. + === "version" ----- + Show version number. -#### `help` - -Show help. - ----- - -#### `version` - -Show version number. - ----- ## Running in a terminal diff --git a/resources/docs/docs/user-interface/client.md b/resources/docs/docs/user-interface/client.md index b679653a..0981b67d 100644 --- a/resources/docs/docs/user-interface/client.md +++ b/resources/docs/docs/user-interface/client.md @@ -45,14 +45,22 @@ Modals are virtual popup windows that may contain various content: file browser, ## Keyboard shortcuts -
-| Shortcut | Description | -|---|---| -| ++"mod"+e++ | enable/disable editor | -| ++"mod"+s++ | save session | -| ++"mod"+shift+s++ | save session as... | -| ++"mod"+o++ | open a session file | -| ++"mod"+w++ | close client | +=== "Linux / Windows" -!!! info "" - `mod` refers to the `ctrl` key except on MacOs (`command`) + | Shortcut | Description | + |---|---| + | ++ctrl+e++ | enable/disable editor | + | ++ctrl+s++ | save session | + | ++ctrl+shift+s++ | save session as... | + | ++ctrl+o++ | open a session file | + | ++ctrl+w++ | close client | + +=== "Mac" + + | Shortcut | Description | + |---|---| + | ++cmd+e++ | enable/disable editor | + | ++cmd+s++ | save session | + | ++cmd+shift+s++ | save session as... | + | ++cmd+o++ | open a session file | + | ++cmd+w++ | close client | diff --git a/resources/docs/docs/user-interface/editor.md b/resources/docs/docs/user-interface/editor.md index 613244e4..ee56067a 100644 --- a/resources/docs/docs/user-interface/editor.md +++ b/resources/docs/docs/user-interface/editor.md @@ -34,7 +34,7 @@ Selected widget's properties are displayed and can be modified in the inspector. - Property fields are all multiline (press `shift + enter` for new line). - Properties are written in JSON, with some flexibility brought by the [JSON5](https://github.com/json5/json5) format. For example, doubles quotes around object keys are not mandatory. -- Clicking on a property name spawns a help modal window +- Clicking on a property name spawns a help modal window ## Project tree @@ -62,26 +62,48 @@ Multiple widgets can be edited at once. The following shortcuts are available only when the editor is enabled: -| Shortcut | Description | -|---|---| -| `click` | Widget selection. | -| `mod + click` | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.| -| `shift + click + drag`* | Draw a selection rectangle and attempt to select widgets in it (starts by selecting the widget under the cursor). If `mod` is pressed too, current selection is kept and will be merged with the new one if possible. | -| `mod + z` | Undo | -| `mod + y / mod + shift + z` | Redo | -| `delete` (`backspace` on Mac) | Delete selected widgets | -| `mod + c` | Copy selected widgets | -| `mod + x` | Cut selected widgets | -| `mod + v` | Paste clipboard in selected widget | -| `mod + shift + v` | Paste and increment id | -| `up, down, left, right` | Move selected widgets (1 grid unit, hold `shift` for 5 grid units) | -| `alt + [up, down, left, right]` | Resize selected widgets (1 grid unit, hold `shift` for 5 grid units) | -| `mod + a` | Select current widget's siblings and itself | -| `mod + shift + a` | Cancel current widget selection | -| `mod + up` | Select current widget's parent | -| `mod + down` | Select current widget's first child | -| `mod + right` | Select current widget's next sibling | -| `mod + left` | Select current widget's previous sibling | +=== "Linux / Windows" -!!! info "" - `mod` refers to the `ctrl` key except on MacOs (`command`) + | Shortcut | Description | + |---|---| + | ++"Click"++ | Widget selection. | + | ++ctrl+"Click"++ | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.| + | ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it (starts by selecting the widget under the cursor). If ++ctrl++ is pressed too, current selection is kept and will be merged with the new one if possible. | + | ++ctrl+z++ | Undo | + | ++ctrl+y++
++ctrl+shift+z++ | Redo | + | ++delete++ | Delete selected widgets | + | ++ctrl+c++ | Copy selected widgets | + | ++ctrl+x++ | Cut selected widgets | + | ++ctrl+v++ | Paste clipboard in selected widget | + | ++ctrl+shift+v++ | Paste and increment id | + | ++up++
++down++
++left++
++right++ | Move selected widgets (1 grid unit, hold ++shift++ for 5 grid units) | + | ++alt+up++
++alt+down++
++alt+left++
++alt+right++ | Resize selected widgets (1 grid unit, hold ++shift++ for 5 grid units) | + | ++ctrl+a++ | Select current widget's siblings and itself | + | ++ctrl+shift+a++ | Cancel current widget selection | + | ++ctrl+up++ | Select current widget's parent | + | ++ctrl+down++ | Select current widget's first child | + | ++ctrl+right++ | Select current widget's next sibling | + | ++ctrl+left++ | Select current widget's previous sibling | + +=== "Mac" + + | Shortcut | Description | + |---|---| + | ++"Click"++ | Widget selection. | + | ++cmd+"Click"++ | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.| + | ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it (starts by selecting the widget under the cursor). If ++cmd++ is pressed too, current selection is kept and will be merged with the new one if possible. | + | ++cmd+z++ | Undo | + | ++cmd+y++
++cmd+shift+z++ | Redo | + | ++backspace++ | Delete selected widgets | + | ++cmd+c++ | Copy selected widgets | + | ++cmd+x++ | Cut selected widgets | + | ++cmd+v++ | Paste clipboard in selected widget | + | ++cmd+shift+v++ | Paste and increment id | + | ++up++
++down++
++left++
++right++ | Move selected widgets (1 grid unit, hold ++shift++ for 5 grid units) | + | ++alt+up++
++alt+down++
++alt+left++
++alt+right++ | Resize selected widgets (1 grid unit, hold ++shift++ for 5 grid units) | + | ++cmd+a++ | Select current widget's siblings and itself | + | ++cmd+shift+a++ | Cancel current widget selection | + | ++cmd+up++ | Select current widget's parent | + | ++cmd+down++ | Select current widget's first child | + | ++cmd+right++ | Select current widget's next sibling | + | ++cmd+left++ | Select current widget's previous sibling | diff --git a/resources/docs/docs/user-interface/launcher.md b/resources/docs/docs/user-interface/launcher.md index 514dcf74..ef7806c8 100644 --- a/resources/docs/docs/user-interface/launcher.md +++ b/resources/docs/docs/user-interface/launcher.md @@ -26,16 +26,15 @@ The console diplays various informations, runtime errors and server debug messag ## Keyboard shortcuts -
-| Shortcut | Description | -|---|---| -| `mod + w` | close window | +=== "Linux / Windows" - + | Shortcut | Description | + |---|---| + | ++ctrl+w++ | close window | -!!! info "" - `mod` refers to the `ctrl` key except on MacOs (`command`) +=== "Mac" + + | Shortcut | Description | + |---|---| + | ++cmd+w++ | close window | + | ++cmd+q++ | quit app | diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 05b3b160..e1feb876 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -2,703 +2,679 @@ ## Common -
+??? api "
Generic properties#
" + Properties shared by all widgets - -
Properties shared by all widgets
+ -| property | type |default | description | -| --- | --- | --- | --- | -|
widget#
|||| -|
type#
| `string` | "auto" | | -|
id#
| `string` | "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. | -|
label#
| `string`|
`boolean` | "auto" | Set to `false` to hide completely

Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free) | -|
visible#
| `boolean` | true | Set to `false` to hide the widget. | -|
interaction#
| `boolean` | true | Set to `false` to disable pointer interactions. | -|
geometry#
|||| -|
left#
| `number`|
`string` | "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).

Otherwise, the widget will be absolutely positioned | -|
top#
| `number`|
`percentage` | "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).

Otherwise, the widget will be absolutely positioned | -|
width#
| `number`|
`percentage` | "auto" | | -|
height#
| `number`|
`percentage` | "auto" | | -|
expand#
| `boolean`|
`number` | "false" | If parent's layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically. | -|
style#
|||| -|
colorText#
| `string` | "auto" | Text color. Set to "auto" to inherit from parent widget. | -|
colorWidget#
| `string` | "auto" | Widget's default accent color. Set to "auto" to inherit from parent widget. | -|
colorStroke#
| `string` | "auto" | Stroke color. Set to "auto" to use `colorWidget`. | -|
colorFill#
| `string` | "auto" | Fill color. Set to "auto" to use `colorWidget`. | -|
alphaStroke#
| `number` | "auto" | Stroke color opacity. | -|
alphaFillOff#
| `number` | "auto" | Fill color opacity (off). | -|
alphaFillOn#
| `number` | "auto" | Fill color opacity (on). | -|
padding#
| `number` | "auto" | Inner spacing. | -|
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke` | -|
value#
|||| -|
value#
| `*` | "" | Define the widget's value depending on other widget's values / properties using the advanced property syntax | -|
default#
| `*` | "" | If set, the widget will be initialized with this value when the session is loaded. | -|
linkId#
| `string`|
`array` | "" | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.

When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)

When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending) | -|
script#
| `script` | "" | Script executed whenever the widget's value updates. See documentation. | -|
osc#
|||| -|
address#
| `string` | "auto" | OSC address for sending messages, it must start with a / | -|
preArgs#
| `*`|
`array` | "" | A value or array of values that will be prepended to the OSC messages. | -|
typeTags#
| `string` | "" | Defines the osc argument types, one letter per argument (including preArgs)
- If empty, the types are infered automatically from the values (with numbers casted to floats by default)
- If there are more arguments than type letters, the last type is used for the extra arguments

See http://opensoundcontrol.org/spec-1_0 for existing typetags | -|
decimals#
| `integer` | 2 | Defines the number of decimals to send. | -|
target#
| `string`|
`array`|
`null` | "" | This defines the targets of the widget's OSC messages
- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:port"]`
- If midi is enabled, targets can be `midi:device_name`
- The special item `"self"` can be used to refer to the emitting client directly.
- If no target is set, messages can still be sent if the server has default targets
- The server's default targets can be bypassed by setting one of the items to `null` | -|
ignoreDefaults#
| `boolean` | false | Set to `true` to ignore the server's default targets | -|
bypass#
| `boolean` | false | Set to `true` to prevent the widget from sending any osc message |
+ === "widget" + + | property | type |default | description | + | --- | --- | --- | --- | + |
type#
| `string` | "auto" | | + |
id#
| `string` | "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. | + |
label#
| `string`|
`boolean` | "auto" | Set to `false` to hide completely

Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free) | + |
visible#
| `boolean` | true | Set to `false` to hide the widget. | + |
interaction#
| `boolean` | true | Set to `false` to disable pointer interactions. | + + + === "geometry" + + | property | type |default | description | + | --- | --- | --- | --- | + |
left#
| `number`|
`string` | "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).

Otherwise, the widget will be absolutely positioned | + |
top#
| `number`|
`percentage` | "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation).

Otherwise, the widget will be absolutely positioned | + |
width#
| `number`|
`percentage` | "auto" | | + |
height#
| `number`|
`percentage` | "auto" | | + |
expand#
| `boolean`|
`number` | "false" | If parent's layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically. | + + + === "style" + + | property | type |default | description | + | --- | --- | --- | --- | + |
colorText#
| `string` | "auto" | Text color. Set to "auto" to inherit from parent widget. | + |
colorWidget#
| `string` | "auto" | Widget's default accent color. Set to "auto" to inherit from parent widget. | + |
colorStroke#
| `string` | "auto" | Stroke color. Set to "auto" to use `colorWidget`. | + |
colorFill#
| `string` | "auto" | Fill color. Set to "auto" to use `colorWidget`. | + |
alphaStroke#
| `number` | "auto" | Stroke color opacity. | + |
alphaFillOff#
| `number` | "auto" | Fill color opacity (off). | + |
alphaFillOn#
| `number` | "auto" | Fill color opacity (on). | + |
padding#
| `number` | "auto" | Inner spacing. | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke` | + + + === "value" + + | property | type |default | description | + | --- | --- | --- | --- | + |
value#
| `*` | "" | Define the widget's value depending on other widget's values / properties using the advanced property syntax | + |
default#
| `*` | "" | If set, the widget will be initialized with this value when the session is loaded. | + |
linkId#
| `string`|
`array` | "" | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.

When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)

When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending) | + |
script#
| `script` | "" | Script executed whenever the widget's value updates. See documentation. | + + + === "osc" + + | property | type |default | description | + | --- | --- | --- | --- | + |
address#
| `string` | "auto" | OSC address for sending messages, it must start with a / | + |
preArgs#
| `*`|
`array` | "" | A value or array of values that will be prepended to the OSC messages. | + |
typeTags#
| `string` | "" | Defines the osc argument types, one letter per argument (including preArgs)
- If empty, the types are infered automatically from the values (with numbers casted to floats by default)
- If there are more arguments than type letters, the last type is used for the extra arguments

See http://opensoundcontrol.org/spec-1_0 for existing typetags | + |
decimals#
| `integer` | 2 | Defines the number of decimals to send. | + |
target#
| `string`|
`array`|
`null` | "" | This defines the targets of the widget's OSC messages
- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:port"]`
- If midi is enabled, targets can be `midi:device_name`
- The special item `"self"` can be used to refer to the emitting client directly.
- If no target is set, messages can still be sent if the server has default targets
- The server's default targets can be bypassed by setting one of the items to `null` | + |
ignoreDefaults#
| `boolean` | false | Set to `true` to ignore the server's default targets | + |
bypass#
| `boolean` | false | Set to `true` to prevent the widget from sending any osc message | ## Basics +??? api "
button#
" + On / off button. -
+ === "style" - -
On / off button.
+ | property | type |default | description | + | --- | --- | --- | --- | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | -| property | type |default | description | -| --- | --- | --- | --- | -|
style#
|||| -|
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | -|
button#
|||| -|
on#
| `*` | 1 | Set to `null` to send send no argument in the osc message | -|
off#
| `*` | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. | -|
mode#
| `string` | "toggle" | Interraction mode:
- `toggle` (classic on/off switch)
- `push` (press & release)
- `tap` (no release)

Choices: `toggle`, `push`, `tap` | -|
doubleTap#
| `boolean` | false | Set to `true` to make the button require a double tap to be pushed instead of a single tap | -|
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. |
+ === "button" + | property | type |default | description | + | --- | --- | --- | --- | + |
on#
| `*` | 1 | Set to `null` to send send no argument in the osc message | + |
off#
| `*` | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. | + |
mode#
| `string` | "toggle" | Interraction mode:
- `toggle` (classic on/off switch)
- `push` (press & release)
- `tap` (no release)

Choices: `toggle`, `push`, `tap` | + |
doubleTap#
| `boolean` | false | Set to `true` to make the button require a double tap to be pushed instead of a single tap | + |
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. | +??? api "
switch#
" + Value selector button. + === "style" -
+ | property | type |default | description | + | --- | --- | --- | --- | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | - -
Value selector button.
+ === "switch" -| property | type |default | description | -| --- | --- | --- | --- | -|
style#
|||| -|
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | -|
switch#
|||| -|
layout#
| `string` | "vertical" | Choices: `vertical`, `horizontal`, `grid` | -|
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | -|
values#
| `array`|
`object` | \{
 "Value 1": 1,
 "Value 2": 2
}
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept | -|
mode#
| `string` | "tap" | Interraction mode:
- `tap`: activates when the pointer is down but prevents further scrolling
- `slide`: same as `tap` but allows sliding between values
- `click`: activates upon click only and allows further scrolling

Choices: `tap`, `slide`, `click` | -|
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. |
+ | property | type |default | description | + | --- | --- | --- | --- | + |
layout#
| `string` | "vertical" | Choices: `vertical`, `horizontal`, `grid` | + |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | + |
values#
| `array`|
`object` | \{
 "Value 1": 1,
 "Value 2": 2
}
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept | + |
mode#
| `string` | "tap" | Interraction mode:
- `tap`: activates when the pointer is down but prevents further scrolling
- `slide`: same as `tap` but allows sliding between values
- `click`: activates upon click only and allows further scrolling

Choices: `tap`, `slide`, `click` | + |
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. | +??? api "" + Native dropdown menu. + === "dropdown" + | property | type |default | description | + | --- | --- | --- | --- | + | | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | + | | `array`|
`object` | \{
 "Value 1": 1,
 "Value 2": 2
}
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept | -
+??? api "" + Drag and drop menu with a circular or grid layout. - -
Native dropdown menu.
+ === "menu" -| property | type |default | description | -| --- | --- | --- | --- | -| |||| -| | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | -| | `array`|
`object` | \{
 "Value 1": 1,
 "Value 2": 2
}
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept |
+ | property | type |default | description | + | --- | --- | --- | --- | + | | `number`|
`array` | 200 | - If `layout` is `circular`: diameter (in px)
- Else: square size or `[width, height]` array | + | | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | + | | `string` | "circular" | Defines whether the menu's layout should be rendered in a circle or in a box

Choices: `circular`, `horizontal`, `vertical`, `grid` | + | | `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | + | | `boolean` | false | Set to `true` to make the menu stay opened after mouse/touch release | + | | `boolean` | false | Set to `true` to make the menu require a double tap to be opened instead of a single tap | + | | `array`|
`object` | [
 1,
 2,
 3
]
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept | + | | `array` | "" | `Array` of `number` defining the weights of each value in `values`

Ignored when `mode` is `grid` | +??? api "
input#
" + Text input. + === "input" + | property | type |default | description | + | --- | --- | --- | --- | + |
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | + |
unit#
| `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) | + |
asYouType#
| `boolean` | false | Set to `true` to make the input send its value at each keystroke | -
- - -
Drag and drop menu with a circular or grid layout.
- -| property | type |default | description | -| --- | --- | --- | --- | -| |||| -| | `number`|
`array` | 200 | - If `layout` is `circular`: diameter (in px)
- Else: square size or `[width, height]` array | -| | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | -| | `string` | "circular" | Defines whether the menu's layout should be rendered in a circle or in a box

Choices: `circular`, `horizontal`, `vertical`, `grid` | -| | `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | -| | `boolean` | false | Set to `true` to make the menu stay opened after mouse/touch release | -| | `boolean` | false | Set to `true` to make the menu require a double tap to be opened instead of a single tap | -| | `array`|
`object` | [
 1,
 2,
 3
]
| `Array` of possible values to switch between : `[1,2,3]`

`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept | -| | `array` | "" | `Array` of `number` defining the weights of each value in `values`

Ignored when `mode` is `grid` |
- - - - -
- - -
Text input.
- -| property | type |default | description | -| --- | --- | --- | --- | -|
input#
|||| -|
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | -|
unit#
| `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) | -|
asYouType#
| `boolean` | false | Set to `true` to make the input send its value at each keystroke |
- - - - -
- - -
File/Folder selector (server-side).
- -| property | type |default | description | -| --- | --- | --- | --- | -|
input#
|||| -|
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | -|
directory#
| `string` | "auto" | Default browsing directory | -|
extension#
| `string` | "*" | Only display files with this extension | -|
hidePath#
| `boolean` | false | Set to `true` to only display the filename (the whole path will still be used as value) | -|
allowDir#
| `boolean` | false | Allow selecting a folder (by pressing "open" when no file is selected) |
- +??? api "
file#
" + File/Folder selector (server-side). + === "input" + | property | type |default | description | + | --- | --- | --- | --- | + |
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Choices: `center`, `left`, `right` | + |
directory#
| `string` | "auto" | Default browsing directory | + |
extension#
| `string` | "*" | Only display files with this extension | + |
hidePath#
| `boolean` | false | Set to `true` to only display the filename (the whole path will still be used as value) | + |
allowDir#
| `boolean` | false | Allow selecting a folder (by pressing "open" when no file is selected) | ## Containers +??? api "
panel#
" + Widgets or Tabs container. -
+ === "panel" - -
Widgets or Tabs container.
+ | property | type |default | description | + | --- | --- | --- | --- | + |
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | + |
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | + |
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | + |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | + |
verticalTabs#
| `boolean` | false | Set to `true` to display for vertical tab layout | + |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget | + |
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | + |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | -| property | type |default | description | -| --- | --- | --- | --- | -|
panel#
|||| -|
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | -|
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | -|
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | -|
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | -|
verticalTabs#
| `boolean` | false | Set to `true` to display for vertical tab layout | -|
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget | -|
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | -|
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | -|
value#
|||| -|
value#
| `integer` | "" | Defines currently widgeted tab in the widget

A tab can be opened only by setting its parent's value | -|
osc#
|||| -|
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | -|
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
+ === "value" + | property | type |default | description | + | --- | --- | --- | --- | + |
value#
| `integer` | "" | Defines currently widgeted tab in the widget

A tab can be opened only by setting its parent's value | + === "children" + | property | type |default | description | + | --- | --- | --- | --- | + |
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | + |
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | -
+??? api "" + A toggle button that opens a popup panel. Cannot contain tabs directly. - -
A toggle button that opens a popup panel. Cannot contain tabs directly.
+ === "modal" -| property | type |default | description | -| --- | --- | --- | --- | -| |||| -| | `boolean` | false | Set to `true` to make the modal require a double tap to open instead of a single tap | -| | `string` | "" | Alternative label for the modal popup | -| | `number`|
`percentage` | "80%" | Modal popup's size | -| | `number`|
`percentage` | "80%" | Modal popup's size | -| | `number`|
`percentage` | "auto" | Modal popup's position | -| | `number`|
`percentage` | "auto" | Modal popup's position | -| | `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | -| | `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | -| | `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | -| | `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget | -| | `boolean` | true | Set to `false` to disable scrollbars | -| | `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | -| |||| -| | `integer` | "" | Defines the modal's state:`0` for closed, `1` for opened | -| |||| -| | `array` | [] | Each element of the array must be a widget object |
+ | property | type |default | description | + | --- | --- | --- | --- | + | | `boolean` | false | Set to `true` to make the modal require a double tap to open instead of a single tap | + | | `string` | "" | Alternative label for the modal popup | + | | `number`|
`percentage` | "80%" | Modal popup's size | + | | `number`|
`percentage` | "80%" | Modal popup's size | + | | `number`|
`percentage` | "auto" | Modal popup's position | + | | `number`|
`percentage` | "auto" | Modal popup's position | + | | `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | + | | `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | + | | `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | + | | `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget | + | | `boolean` | true | Set to `false` to disable scrollbars | + | | `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | + === "value" + | property | type |default | description | + | --- | --- | --- | --- | + | | `integer` | "" | Defines the modal's state:`0` for closed, `1` for opened | + === "children" -
+ | property | type |default | description | + | --- | --- | --- | --- | + | | `array` | [] | Each element of the array must be a widget object | - -
Widget replication with overridable properties.
+??? api "
clone#
" + Widget replication with overridable properties. -| property | type |default | description | -| --- | --- | --- | --- | -|
clone#
|||| -|
widgetId#
| `string` | "" | `id` of the widget to clone | -|
overrides#
|||| -|
props#
| `object` | \{} | Cloned widget's properties to override |
+ === "clone" + | property | type |default | description | + | --- | --- | --- | --- | + |
widgetId#
| `string` | "" | `id` of the widget to clone | + === "overrides" + | property | type |default | description | + | --- | --- | --- | --- | + |
props#
| `object` | \{} | Cloned widget's properties to override | -
+??? api "
matrix#
" + Generic matrix for creating rows/columns of widgets. - -
Generic matrix for creating rows/columns of widgets.
+ === "matrix" -| property | type |default | description | -| --- | --- | --- | --- | -|
matrix#
|||| -|
widgetType#
| `string` | "button" | Defines the type of the widgets in the matrix | -|
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | -|
layout#
| `string` | "horizontal" | Defines how children are laid out.

Choices: `horizontal`, `vertical`, `grid` | -|
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | -|
quantity#
| `number` | 4 | Defines the number of widgets in the matrix | -|
start#
| `integer` | 0 | First widget's index | -|
traversing#
| `boolean` | true | Set to `false` to disable traversing gestures | -|
props#
| `object` | \{} | Defines a set of property to override the widgets' defaults.

Formulas in this field are resolved with an extra variable representing each widget's index: `$`

Note: by default, the widgets inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) |
+ | property | type |default | description | + | --- | --- | --- | --- | + |
widgetType#
| `string` | "button" | Defines the type of the widgets in the matrix | + |
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | + |
layout#
| `string` | "horizontal" | Defines how children are laid out.

Choices: `horizontal`, `vertical`, `grid` | + |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | + |
quantity#
| `number` | 4 | Defines the number of widgets in the matrix | + |
start#
| `integer` | 0 | First widget's index | + |
traversing#
| `boolean` | true | Set to `false` to disable traversing gestures | + |
props#
| `object` | \{} | Defines a set of property to override the widgets' defaults.

Formulas in this field are resolved with an extra variable representing each widget's index: `$`

Note: by default, the widgets inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) | +??? api "
keyboard#
" + Piano keyboard. + === "style" + | property | type |default | description | + | --- | --- | --- | --- | + |
css#
| `string` | "" | Available CSS variables:
- `--color-white:color;` (white keys color)
- `--color-black:color;` (black keys color) | -
+ === "matrix" - -
Piano keyboard.
+ | property | type |default | description | + | --- | --- | --- | --- | + |
keys#
| `number` | 25 | Defines the number keys | + |
start#
| `number` | 48 | MIDI note number to start with (default is C4)

Standard keyboards settings are: `[25, 48]`, `[49, 36]`, `[61, 36]`, `[88, 21]` | + |
traversing#
| `boolean` | true | Set to `false` to disable traversing gestures | + |
on#
| `*` | 1 | Set to `null` to send send no argument in the osc message

Can be an `object` if the type needs to be specified (see preArgs) | + |
off#
| `*` | 0 | Set to `null` to send send no argument in the osc message

Can be an `object` if the type needs to be specified (see preArgs) | + |
toggles#
| `boolean` | false | Set to `true` to make keys bahave like toggle buttons | -| property | type |default | description | -| --- | --- | --- | --- | -|
style#
|||| -|
css#
| `string` | "" | Available CSS variables:
- `--color-white:color;` (white keys color)
- `--color-black:color;` (black keys color) | -|
matrix#
|||| -|
keys#
| `number` | 25 | Defines the number keys | -|
start#
| `number` | 48 | MIDI note number to start with (default is C4)

Standard keyboards settings are: `[25, 48]`, `[49, 36]`, `[61, 36]`, `[88, 21]` | -|
traversing#
| `boolean` | true | Set to `false` to disable traversing gestures | -|
on#
| `*` | 1 | Set to `null` to send send no argument in the osc message

Can be an `object` if the type needs to be specified (see preArgs) | -|
off#
| `*` | 0 | Set to `null` to send send no argument in the osc message

Can be an `object` if the type needs to be specified (see preArgs) | -|
toggles#
| `boolean` | false | Set to `true` to make keys bahave like toggle buttons |
+??? api "
patchbay#
" + Connect inputs to outputs. + === "style" + | property | type |default | description | + | --- | --- | --- | --- | + |
css#
| `string` | "" | The inputs/ouputs width can be adjusted by using the `.nodes` selector:

`.nodes { width: 25% }` | + === "patchbay" -
+ | property | type |default | description | + | --- | --- | --- | --- | + |
inputs#
| `array`|
`object` | [
 "input_1",
 "input_2"
]
| - `Array` of input names : `['input_1', 'input_2']`
- `Object` of `"label_1": "input_1"` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept



Patchbay inputs can be connected to one or more outputs and will send messages of the following form when they are connected/disconnected:

`/patchbay_address input_x output_x output_y etc`

If no output is connected to the input, the message will be `/patchbay_address input_x`

The inputs values can be consumed with the property inheritance syntax: `@{patchbay_id/input_1}` returns an array of output names connected to `input_1` | + |
outputs#
| `array`|
`object` | [
 "output_1",
 "output_2"
]
| List of output values the inputs can connect to (see `inputs`). | - -
Connect inputs to outputs.
+??? api "
root#
" + Main (unique) container -| property | type |default | description | -| --- | --- | --- | --- | -|
style#
|||| -|
css#
| `string` | "" | The inputs/ouputs width can be adjusted by using the `.nodes` selector:

`.nodes { width: 25% }` | -|
patchbay#
|||| -|
inputs#
| `array`|
`object` | [
 "input_1",
 "input_2"
]
| - `Array` of input names : `['input_1', 'input_2']`
- `Object` of `"label_1": "input_1"` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept



Patchbay inputs can be connected to one or more outputs and will send messages of the following form when they are connected/disconnected:

`/patchbay_address input_x output_x output_y etc`

If no output is connected to the input, the message will be `/patchbay_address input_x`

The inputs values can be consumed with the property inheritance syntax: `@{patchbay_id/input_1}` returns an array of output names connected to `input_1` | -|
outputs#
| `array`|
`object` | [
 "output_1",
 "output_2"
]
| List of output values the inputs can connect to (see `inputs`). |
+ === "panel" + | property | type |default | description | + | --- | --- | --- | --- | + |
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | + |
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | + |
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | + |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | + |
verticalTabs#
| `boolean` | false | Set to `true` to display for vertical tab layout | + |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget | + |
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | + |
variables#
| `*` | "" | Defines one or more arbitrary variables that can be inherited by children widgets | + === "value" + | property | type |default | description | + | --- | --- | --- | --- | + |
value#
| `integer` | "" | Defines currently widgeted tab in the widget

A tab can be opened only by setting its parent's value | -
+ === "children" - -
Main (unique) container
+ | property | type |default | description | + | --- | --- | --- | --- | + |
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | + |
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | -| property | type |default | description | -| --- | --- | --- | --- | -|
panel#
|||| -|
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | -|
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | -|
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | -|
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | -|
verticalTabs#
| `boolean` | false | Set to `true` to display for vertical tab layout | -|
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget | -|
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | -|
variables#
| `*` | "" | Defines one or more arbitrary variables that can be inherited by children widgets | -|
value#
|||| -|
value#
| `integer` | "" | Defines currently widgeted tab in the widget

A tab can be opened only by setting its parent's value | -|
osc#
|||| -|
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | -|
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
+??? api "
tab#
" + Tabbed panel widget + === "tab" + | property | type |default | description | + | --- | --- | --- | --- | + |
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | + |
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | + |
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | + |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | + |
verticalTabs#
| `boolean` | false | Set to `true` to display for vertical tab layout | + |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget | + |
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | + |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | + === "value" -
- - -
Tabbed panel widget
- -| property | type |default | description | -| --- | --- | --- | --- | -|
tab#
|||| -|
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | -|
layout#
| `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | -|
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.

Choices: `start`, `end`, `center`, `space-around`, `space-between` | -|
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | -|
verticalTabs#
| `boolean` | false | Set to `true` to display for vertical tab layout | -|
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget | -|
scroll#
| `boolean` | true | Set to `false` to disable scrollbars | -|
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | -|
value#
|||| -|
value#
| `integer` | "" | Defines currently widgeted tab in the widget

A tab can be opened only by setting its parent's value | -|
osc#
|||| -|
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | -|
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
- + | property | type |default | description | + | --- | --- | --- | --- | + |
value#
| `integer` | "" | Defines currently widgeted tab in the widget

A tab can be opened only by setting its parent's value | + === "children" + | property | type |default | description | + | --- | --- | --- | --- | + |
widgets#
| `array` | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. | + |
tabs#
| `array` | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously | ## Frames +??? api "
frame#
" + Embed a page in a frame (local network only). -
+ === "widget" - -
Embed a page in a frame (local network only).
+ | property | type |default | description | + | --- | --- | --- | --- | + |
label#
| `string`|
`boolean` | "auto" | Set to `false` to hide completely

Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc

If set to `false`, all pointer-events will be disabled on the frame as long as the editor is enabled to ensure it can be selected | -| property | type |default | description | -| --- | --- | --- | --- | -|
widget#
|||| -|
label#
| `string`|
`boolean` | "auto" | Set to `false` to hide completely

Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc

If set to `false`, all pointer-events will be disabled on the frame as long as the editor is enabled to ensure it can be selected | -|
value#
|||| -|
value#
| `string` | "" | External web page URL. Only local URLs are allowed (starting with `http://127.0.0.1/`, `http://10.x.x.x/`, `http://192.168.x.x/`, etc) |
+ === "value" + | property | type |default | description | + | --- | --- | --- | --- | + |
value#
| `string` | "" | External web page URL. Only local URLs are allowed (starting with `http://127.0.0.1/`, `http://10.x.x.x/`, `http://192.168.x.x/`, etc) | +??? api "
svg#
" + Svg parser. + === "svg" -
+ | property | type |default | description | + | --- | --- | --- | --- | + |
svg#
| `string` | "" | Svg xml definition:
- will be wrapped in a `< svg />` element
- `` commands support a special percent notation (`%x` and `%y`) | - -
Svg parser.
+??? api "
html#
" + Simple HTML parser. -| property | type |default | description | -| --- | --- | --- | --- | -|
svg#
|||| -|
svg#
| `string` | "" | Svg xml definition:
- will be wrapped in a `< svg />` element
- `` commands support a special percent notation (`%x` and `%y`) |
+ === "html" + | property | type |default | description | + | --- | --- | --- | --- | + |
html#
| `string` | "" | Allowed HTML tags:

  h1-6, blockquote, p, a, ul, ol, nl, li,

  b, i, strong, em, strike, code, hr, br, div,

  table, thead, img, caption, tbody, tr, th, td, pre

Allowed attributes:

  <*>: class, style, title

  : src, width, height | +??? api "
image#
" + Load a image (url or base64-encoded). + === "image" -
- - -
Simple HTML parser.
- -| property | type |default | description | -| --- | --- | --- | --- | -|
html#
|||| -|
html#
| `string` | "" | Allowed HTML tags:

  h1-6, blockquote, p, a, ul, ol, nl, li,

  b, i, strong, em, strike, code, hr, br, div,

  table, thead, img, caption, tbody, tr, th, td, pre

Allowed attributes:

  <*>: class, style, title

  : src, width, height |
- - - - -
- - -
Load a image (url or base64-encoded).
- -| property | type |default | description | -| --- | --- | --- | --- | -|
image#
|||| -|
size#
| `string` | "cover" | CSS background-size | -|
position#
| `string` | "center" | CSS background-position | -|
repeat#
| `string` | "no-repeat" | CSS background-repeat | -|
cache#
| `boolean` | true | Set to false to disable image caching (forces file reload when updating or editing the widget).

When true, sending `reload` to the widget reloads its image without changing its value | -|
value#
|||| -|
value#
| `string` | "" | - File `url` or `path` (relative to the session file location by default, falling back to absolute path)
- Base64 encoded image : `data:image/...` |
- + | property | type |default | description | + | --- | --- | --- | --- | + |
size#
| `string` | "cover" | CSS background-size | + |
position#
| `string` | "center" | CSS background-position | + |
repeat#
| `string` | "no-repeat" | CSS background-repeat | + |
cache#
| `boolean` | true | Set to false to disable image caching (forces file reload when updating or editing the widget).

When true, sending `reload` to the widget reloads its image without changing its value | + === "value" + | property | type |default | description | + | --- | --- | --- | --- | + |
value#
| `string` | "" | - File `url` or `path` (relative to the session file location by default, falling back to absolute path)
- Base64 encoded image : `data:image/...` | ## Graphs +??? api "
plot#
" + XY coordinates plot. -
+ === "plot" - -
XY coordinates plot.
+ | property | type |default | description | + | --- | --- | --- | --- | + |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | + |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | + |
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm's base. | + |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. | + |
origin#
| `number` | "auto" | Defines the y axis origin. Set to `false` to disable it. | + |
dots#
| `boolean` | true | | + |
bars#
| `boolean` | false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) | + |
pips#
| `boolean` | true | Set to `false` to hide the scale | -| property | type |default | description | -| --- | --- | --- | --- | -|
plot#
|||| -|
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | -|
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | -|
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm's base. | -|
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. | -|
origin#
| `number` | "auto" | Defines the y axis origin. Set to `false` to disable it. | -|
dots#
| `boolean` | true | | -|
bars#
| `boolean` | false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) | -|
pips#
| `boolean` | true | Set to `false` to hide the scale | -|
value#
|||| -|
value#
| `array`|
`string` | "" | - `Array` of `y` values
- `Array` of `[x, y]` `array` values
- `String` `array`
- `String` `object` to update specific coordinates only: `{0:1, 4:0}` will change the 1st and 5th points' coordinates |
+ === "value" + | property | type |default | description | + | --- | --- | --- | --- | + |
value#
| `array`|
`string` | "" | - `Array` of `y` values
- `Array` of `[x, y]` `array` values
- `String` `array`
- `String` `object` to update specific coordinates only: `{0:1, 4:0}` will change the 1st and 5th points' coordinates | +??? api "
eq#
" + Draws logarithmic frequency response from an array of filter objects. + === "eq" -
- - -
Draws logarithmic frequency response from an array of filter objects.
- -| property | type |default | description | -| --- | --- | --- | --- | -|
eq#
|||| -|
filters#
| `array` | "" | Each item must be an object with the following properties
- `type`: string ("highpass", "highshelf", "lowpass", "lowshelf", "peak", "bandpass" or "notch", default: "peak")
- `freq`: number (filter's resonant frequency, default: 1000)
- `q`: number (Q factor, default: 1)
- `gain`: number (default: 0)
- `on`: boolean (default: true)

See https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode | -|
pips#
| `boolean` | true | Set to false to hide the scale | -|
rangeX#
| `object` | \{
 "min": 20,
 "max": 22000
}
| Defines the min and max values for the x axis (in Hz, logarithmic scale) | -|
rangeY#
| `object` | \{
 "min": -6,
 "max": 6
}
| Defines the min and max values for the y axis (in dB) | -|
origin#
| `number`|
`boolean` | "auto" | Defines the y axis origin. Set to `false` to disable it |
- - - - -
- - -
Display its value over time.
- -| property | type |default | description | -| --- | --- | --- | --- | -|
visualizer#
|||| -|
duration#
| `number` | 1 | Defines visualization duration in seconds | -|
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | -|
origin#
| `number` | "auto" | Defines the y axis origin. Set to `false` to disable it | -|
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. | -|
pips#
| `boolean` | true | Set to `false` to hide the scale |
+ | property | type |default | description | + | --- | --- | --- | --- | + |
filters#
| `array` | "" | Each item must be an object with the following properties
- `type`: string ("highpass", "highshelf", "lowpass", "lowshelf", "peak", "bandpass" or "notch", default: "peak")
- `freq`: number (filter's resonant frequency, default: 1000)
- `q`: number (Q factor, default: 1)
- `gain`: number (default: 0)
- `on`: boolean (default: true)

See https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode | + |
pips#
| `boolean` | true | Set to false to hide the scale | + |
rangeX#
| `object` | \{
 "min": 20,
 "max": 22000
}
| Defines the min and max values for the x axis (in Hz, logarithmic scale) | + |
rangeY#
| `object` | \{
 "min": -6,
 "max": 6
}
| Defines the min and max values for the y axis (in dB) | + |
origin#
| `number`|
`boolean` | "auto" | Defines the y axis origin. Set to `false` to disable it | +??? api "
visualizer#
" + Display its value over time. + === "visualizer" + | property | type |default | description | + | --- | --- | --- | --- | + |
duration#
| `number` | 1 | Defines visualization duration in seconds | + |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | + |
origin#
| `number` | "auto" | Defines the y axis origin. Set to `false` to disable it | + |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. | + |
pips#
| `boolean` | true | Set to `false` to hide the scale | ## Indicators +??? api "
led#
" + Intensity display. -
+ === "led" - -
Intensity display.
+ | property | type |default | description | + | --- | --- | --- | --- | + |
mode#
| `string` | "intensity" | Defines how value is interpreted (see `value`)

Choices: `intensity`, `color` | + |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Value range | + |
alphaRange#
| `object` | \{
 "min": 0,
 "max": 1
}
| Alpha range (if `mode` is `color`) | + |
logScale#
| `boolean` | false | If `mode` is `intensity`, set to `true` to use logarithmic scale. | + |
borderRadius#
| `string` | "" | Css border-radius property. | -| property | type |default | description | -| --- | --- | --- | --- | -|
led#
|||| -|
mode#
| `string` | "intensity" | Defines how value is interpreted (see `value`)

Choices: `intensity`, `color` | -|
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Value range | -|
alphaRange#
| `object` | \{
 "min": 0,
 "max": 1
}
| Alpha range (if `mode` is `color`) | -|
logScale#
| `boolean` | false | If `mode` is `intensity`, set to `true` to use logarithmic scale. | -|
borderRadius#
| `string` | "" | Css border-radius property. | -|
value#
|||| -|
value#
| `number`|
`array`|
`string` | "" | If `mode` is `intensity`:
- `Number`: `intensity` between `range.min` and `range.max`

If `mode` is `color`:
- `Array`: `[r, g, b]` (`r`, `g` and `b` between `range.min` and `range.max`)
- `Array`: `[r, g, b, alpha]` (`alpha` between `alphaRange.min` and `alphaRange.max`)
- `String`: CSS color |
+ === "value" + | property | type |default | description | + | --- | --- | --- | --- | + |
value#
| `number`|
`array`|
`string` | "" | If `mode` is `intensity`:
- `Number`: `intensity` between `range.min` and `range.max`

If `mode` is `color`:
- `Array`: `[r, g, b]` (`r`, `g` and `b` between `range.min` and `range.max`)
- `Array`: `[r, g, b, alpha]` (`alpha` between `alphaRange.min` and `alphaRange.max`)
- `String`: CSS color | +??? api "
text#
" + Display text. + === "text" -
- - -
Display text.
- -| property | type |default | description | -| --- | --- | --- | --- | -|
text#
|||| -|
vertical#
| `boolean` | false | Set to `true` to display the text vertically | -|
wrap#
| `boolean` | false | Set to `true` to wrap long lines automatically.

This will not break overflowing words by default, word-breaking can be enabled by adding `word-break: break-all;` to the `css` property | -|
align#
| `string` | "center" | Css text-align property.

Choices: `center`, `left`, `right` |
- - - + | property | type |default | description | + | --- | --- | --- | --- | + |
vertical#
| `boolean` | false | Set to `true` to display the text vertically | + |
wrap#
| `boolean` | false | Set to `true` to wrap long lines automatically.

This will not break overflowing words by default, word-breaking can be enabled by adding `word-break: break-all;` to the `css` property | + |
align#
| `string` | "center" | Css text-align property.

Choices: `center`, `left`, `right` | ## Pads +??? api "
xy#
" + Two-dimensional slider. -
+ === "xy" - -
Two-dimensional slider.
+ | property | type |default | description | + | --- | --- | --- | --- | + |
pointSize#
| `integer` | 20 | Defines the points' size | + |
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | + |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | + |
pips#
| `boolean` | true | Set to `false` to hide the scale | + |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | + |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | + |
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | + |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. | + |
doubleTap#
| `boolean`|
`string` | false | Set to `true` to make the fader reset to its default value when receiving a double tap.

Can also be an osc address, which case the widget will just send an osc message: `/ ` | + |
sensitivity#
| `number` | 1 | Defines the pad's sensitivity when `snap` is `false` | -| property | type |default | description | -| --- | --- | --- | --- | -|
xy#
|||| -|
pointSize#
| `integer` | 20 | Defines the points' size | -|
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | -|
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | -|
pips#
| `boolean` | true | Set to `false` to hide the scale | -|
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | -|
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | -|
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | -|
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. | -|
doubleTap#
| `boolean`|
`string` | false | Set to `true` to make the fader reset to its default value when receiving a double tap.

Can also be an osc address, which case the widget will just send an osc message: `/ ` | -|
sensitivity#
| `number` | 1 | Defines the pad's sensitivity when `snap` is `false` | -|
osc#
|||| -|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) |
+ === "osc" + | property | type |default | description | + | --- | --- | --- | --- | + |
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) | +??? api "
rgb#
" + Color picker with optional alpha slider. + === "rgb" -
+ | property | type |default | description | + | --- | --- | --- | --- | + |
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | + |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | + |
range#
| `object` | \{
 "min": 0,
 "max": 255
}
| Defines the widget's output scale. | + |
alpha#
| `boolean` | false | Set to `true` to enable alpha channel | + |
rangeAlpha#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the widget's output scale for the alpha channel. | - -
Color picker with optional alpha slider.
+??? api "
multixy#
" + Multi-point XY pad. -| property | type |default | description | -| --- | --- | --- | --- | -|
rgb#
|||| -|
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | -|
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | -|
range#
| `object` | \{
 "min": 0,
 "max": 255
}
| Defines the widget's output scale. | -|
alpha#
| `boolean` | false | Set to `true` to enable alpha channel | -|
rangeAlpha#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the widget's output scale for the alpha channel. |
+ === "multi xy" + | property | type |default | description | + | --- | --- | --- | --- | + |
points#
| `integer`|
`array` | 2 | Defines the number of points on the pad

Can be an array of strings that will be used as labels for the points (ex: `['A', 'B']`) | + === "xy" + | property | type |default | description | + | --- | --- | --- | --- | + |
pointSize#
| `integer` | 20 | Defines the points' size | + |
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | + |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | + |
pips#
| `boolean` | true | Set to `false` to hide the scale | + |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | + |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | + |
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | + |
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. | + |
sensitivity#
| `number` | 1 | Defines the pad's sensitivity when `snap` is `false` | -
- - -
Multi-point XY pad.
- -| property | type |default | description | -| --- | --- | --- | --- | -|
multi xy#
|||| -|
points#
| `integer`|
`array` | 2 | Defines the number of points on the pad

Can be an array of strings that will be used as labels for the points (ex: `['A', 'B']`) | -|
xy#
|||| -|
pointSize#
| `integer` | 20 | Defines the points' size | -|
snap#
| `boolean` | false | By default, the points are dragged from their initial position.

If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates | -|
spring#
| `boolean` | false | When set to `true`, the widget will go back to its default value when released | -|
pips#
| `boolean` | true | Set to `false` to hide the scale | -|
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | -|
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | -|
logScaleX#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. | -|
logScaleY#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. | -|
sensitivity#
| `number` | 1 | Defines the pad's sensitivity when `snap` is `false` | -|
osc#
|||| -|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
- - + === "osc" + | property | type |default | description | + | --- | --- | --- | --- | + |
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | ## Sliders +??? api "
fader#
" + Vertical / horizontal slider. -
+ === "style" - -
Vertical / horizontal slider.
+ | property | type |default | description | + | --- | --- | --- | --- | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | -| property | type |default | description | -| --- | --- | --- | --- | -|
style#
|||| -|
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | -|
fader#
|||| -|
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | -|
horizontal#
| `boolean` | false | Set to `true` to display the fader horizontally | -|
pips#
| `boolean` | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) | -|
dashed#
| `boolean` | false | Set to `true` to display a dashed gauge | -|
gradient#
| `array`|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.

Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} | -|
snap#
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position | -|
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | -|
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | -|
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | -|
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | -|
sensitivity#
| `number` | 1 | Defines the fader's sensitivity when `snap` is `false` | -|
steps#
| `string`|
`number`|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values | -|
origin#
| `number` | "auto" | Defines the starting point's value of the fader's gauge | -|
osc#
|||| -|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ === "fader" + | property | type |default | description | + | --- | --- | --- | --- | + |
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | + |
horizontal#
| `boolean` | false | Set to `true` to display the fader horizontally | + |
pips#
| `boolean` | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) | + |
dashed#
| `boolean` | false | Set to `true` to display a dashed gauge | + |
gradient#
| `array`|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.

Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} | + |
snap#
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position | + |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | + |
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | + |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | + |
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | + |
sensitivity#
| `number` | 1 | Defines the fader's sensitivity when `snap` is `false` | + |
steps#
| `string`|
`number`|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values | + |
origin#
| `number` | "auto" | Defines the starting point's value of the fader's gauge | + === "osc" + | property | type |default | description | + | --- | --- | --- | --- | + |
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | -
+??? api "
knob#
" + Rotative knob slider. - -
Rotative knob slider.
+ === "style" -| property | type |default | description | -| --- | --- | --- | --- | -|
style#
|||| -|
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | -|
knob#
|||| -|
mode#
| `string` | "vertical" | - `circular`: relative move in circular motion
- `snap`: snap to touch position and move in vertical motion
- `vertical`: relative move in vertical motion

Choices: `vertical`, `circular`, `snap` | -|
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | -|
pips#
| `boolean` | false | Set to `true` to show the scale's breakpoints | -|
dashed#
| `boolean` | false | Set to `true` to display a dashed gauge | -|
angle#
| `number` | 270 | Defines the angle's width of the knob, in degrees | -|
doubleTap#
| `boolean` | false | Set to `true` to make the knob reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | -|
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | -|
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | -|
sensitivity#
| `number` | 1 | Defines the knob's sensitivity when `mode` is not `snap` | -|
steps#
| `string`|
`number`|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values | -|
origin#
| `number` | "auto" | Defines the starting point's value of the knob's gauge | -|
osc#
|||| -|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ | property | type |default | description | + | --- | --- | --- | --- | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | + === "knob" + | property | type |default | description | + | --- | --- | --- | --- | + |
mode#
| `string` | "vertical" | - `circular`: relative move in circular motion
- `snap`: snap to touch position and move in vertical motion
- `vertical`: relative move in vertical motion

Choices: `vertical`, `circular`, `snap` | + |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | + |
pips#
| `boolean` | false | Set to `true` to show the scale's breakpoints | + |
dashed#
| `boolean` | false | Set to `true` to display a dashed gauge | + |
angle#
| `number` | 270 | Defines the angle's width of the knob, in degrees | + |
doubleTap#
| `boolean` | false | Set to `true` to make the knob reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | + |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | + |
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | + |
sensitivity#
| `number` | 1 | Defines the knob's sensitivity when `mode` is not `snap` | + |
steps#
| `string`|
`number`|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values | + |
origin#
| `number` | "auto" | Defines the starting point's value of the knob's gauge | + === "osc" -
+ | property | type |default | description | + | --- | --- | --- | --- | + |
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | - -
A knob that sends a relative direction infomation instead of an absolute value.
+??? api "
encoder#
" + A knob that sends a relative direction infomation instead of an absolute value. -| property | type |default | description | -| --- | --- | --- | --- | -|
encoder#
|||| -|
ticks#
| `number` | 360 | defines the granularity / verbosity of the encoder (number of step for a 360° arc) | -|
back#
| `*` | -1 | Defines which value is sent when rotating the encoder anticlockwise | -|
forth#
| `*` | 1 | Defines which value is sent when rotating the encoder clockwise | -|
release#
| `number` | "" | Defines which value is sent when releasing the encoder:
- Set to `null` to send send no argument in the osc message
- Can be an `object` if the type needs to be specified | -|
mode#
| `string` | "circular" | - `circular`: relative move in circular motion
- `snap`: snap to touch position and move in vertical motion
- `vertical`: relative move in vertical motion

Choices: `circular`, `snap`, `vertical` | -|
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | -|
osc#
|||| -|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ === "encoder" + | property | type |default | description | + | --- | --- | --- | --- | + |
ticks#
| `number` | 360 | defines the granularity / verbosity of the encoder (number of step for a 360° arc) | + |
back#
| `*` | -1 | Defines which value is sent when rotating the encoder anticlockwise | + |
forth#
| `*` | 1 | Defines which value is sent when rotating the encoder clockwise | + |
release#
| `number` | "" | Defines which value is sent when releasing the encoder:
- Set to `null` to send send no argument in the osc message
- Can be an `object` if the type needs to be specified | + |
mode#
| `string` | "circular" | - `circular`: relative move in circular motion
- `snap`: snap to touch position and move in vertical motion
- `vertical`: relative move in vertical motion

Choices: `circular`, `snap`, `vertical` | + |
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | + === "osc" + | property | type |default | description | + | --- | --- | --- | --- | + |
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | -
+??? api "
range#
" + A fader with two heads for setting a range. - -
A fader with two heads for setting a range.
+ === "style" -| property | type |default | description | -| --- | --- | --- | --- | -|
style#
|||| -|
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | -|
fader#
|||| -|
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | -|
horizontal#
| `boolean` | false | Set to `true` to display the fader horizontally | -|
pips#
| `boolean` | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) | -|
dashed#
| `boolean` | false | Set to `true` to display a dashed gauge | -|
gradient#
| `array`|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.

Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} | -|
snap#
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position | -|
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | -|
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | -|
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | -|
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | -|
sensitivity#
| `number` | 1 | Defines the fader's sensitivity when `snap` is `false` | -|
steps#
| `string`|
`number`|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values | -|
origin#
| `number` | "auto" | Defines the starting point's value of the fader's gauge | -|
osc#
|||| -|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ | property | type |default | description | + | --- | --- | --- | --- | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | + === "fader" + | property | type |default | description | + | --- | --- | --- | --- | + |
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | + |
horizontal#
| `boolean` | false | Set to `true` to display the fader horizontally | + |
pips#
| `boolean` | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) | + |
dashed#
| `boolean` | false | Set to `true` to display a dashed gauge | + |
gradient#
| `array`|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.

Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} | + |
snap#
| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position | + |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | + |
doubleTap#
| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | + |
range#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | + |
logScale#
| `boolean`|
`number` | false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. | + |
sensitivity#
| `number` | 1 | Defines the fader's sensitivity when `snap` is `false` | + |
steps#
| `string`|
`number`|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values | + |
origin#
| `number` | "auto" | Defines the starting point's value of the fader's gauge | + === "osc" + + | property | type |default | description | + | --- | --- | --- | --- | + |
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | ## Scripts +??? api "
script#
" + Evaluates a script each time it receives a value. -
+ === "script" - -
Evaluates a script each time it receives a value.
+ | property | type |default | description | + | --- | --- | --- | --- | + |
event#
| `string` | "value" | Define which events trigger the script's execution.

Choices: `value`, `keyboard` | + |
script#
| `script` | "" | Script executed whenever the widget's receives the defined event. See documentation. | -| property | type |default | description | -| --- | --- | --- | --- | -|
script#
|||| -|
event#
| `string` | "value" | Define which events trigger the script's execution.

Choices: `value`, `keyboard` | -|
script#
| `script` | "" | Script executed whenever the widget's receives the defined event. See documentation. | -|
event: keyboard#
|||| -|
keyBinding#
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) | -|
keyRepeat#
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed | -|
keyType#
| `string` | "keyDown" | Determines which key event trigger the script's execution

Choices: `keydown`, `keyup`, `both` |
- - - - - + === "event: keyboard" + | property | type |default | description | + | --- | --- | --- | --- | + |
keyBinding#
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) | + |
keyRepeat#
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed | + |
keyType#
| `string` | "keyDown" | Determines which key event trigger the script's execution

Choices: `keydown`, `keyup`, `both` | diff --git a/resources/docs/download.md b/resources/docs/download.md index 863a1b14..db9c40b3 100644 --- a/resources/docs/download.md +++ b/resources/docs/download.md @@ -4,9 +4,9 @@
Loading assets...
-## Changelog +??? abstract "Changelog" +
Loading changelog...
-
Loading changelog...
-`) - -console.log(doc.join('').replace(/^ +/gm,'')) +console.log(doc.join('')) process.exit(0) // avoid setTimeout errors in required modules diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 1e1252c1..177d1cc1 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -148,7 +148,8 @@ class Widget extends EventEmitter { for (var m in push) { if (!alterDefaults[m]) alterDefaults[m] = [] - Object.assign(alterDefaults[m], push[m]) + if (typeof push[m] === 'string') alterDefaults[m] = push[m] + else Object.assign(alterDefaults[m], push[m]) } alterDefaults._props = function() { diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.js index aff54a5a..6f0318b8 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.js @@ -35,6 +35,8 @@ class Modal extends Panel { }, [], { + _children: 'children', + widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object'}, value: {type: 'integer', value: '', help: [ 'Defines the modal\'s state:`0` for closed, `1` for opened' diff --git a/src/client/widgets/containers/panel.js b/src/client/widgets/containers/panel.js index e094eff2..f017ba41 100644 --- a/src/client/widgets/containers/panel.js +++ b/src/client/widgets/containers/panel.js @@ -30,6 +30,8 @@ class Panel extends Container() { }, [], { + _children: 'children', + widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously.'}, tabs: {type: 'array', value: [], help: 'Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously'}, diff --git a/src/client/widgets/containers/root.js b/src/client/widgets/containers/root.js index 23d0b47e..afdaa39f 100644 --- a/src/client/widgets/containers/root.js +++ b/src/client/widgets/containers/root.js @@ -32,6 +32,8 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro 'colorFill', 'colorStroke', 'alphaStroke', 'alphaFillOff', ], { + _children: 'children', + widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously.'}, tabs: {type: 'array', value: [], help: 'Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously'}, diff --git a/src/client/widgets/containers/tab.js b/src/client/widgets/containers/tab.js index ea2b8f2d..e37a93b0 100644 --- a/src/client/widgets/containers/tab.js +++ b/src/client/widgets/containers/tab.js @@ -31,6 +31,8 @@ module.exports = class Tab extends Panel { 'colorStroke', 'alphaStroke', 'alphaFillOff', 'alphaFillOn' ], { + _children: 'children', + widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously.'}, tabs: {type: 'array', value: [], help: 'Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously'},