From 9be22caa81089eca594cad53815579bddcc4f56a Mon Sep 17 00:00:00 2001 From: bordun Date: Mon, 6 Apr 2020 11:37:45 +0200 Subject: [PATCH] docs: getting started ok, scripting missing clues --- .../docs/docs/getting-started/introduction.md | 53 +- .../getting-started/running-from-sources.md | 7 +- .../docs/docs/getting-started/server-setup.md | 46 -- .../getting-started/supported-platforms.md | 9 - resources/docs/docs/midi/midi-setup.md | 36 -- .../docs/docs/widgets/properties-reference.md | 478 +++++++++--------- resources/docs/docs/widgets/scripting.md | 32 +- resources/docs/index.md | 2 +- resources/mkdocs.yml | 5 +- scripts/build-widgets-reference.js | 19 +- src/client/widgets/common/widget.js | 2 +- src/client/widgets/scripts/script.js | 2 +- 12 files changed, 326 insertions(+), 365 deletions(-) delete mode 100644 resources/docs/docs/getting-started/server-setup.md delete mode 100644 resources/docs/docs/getting-started/supported-platforms.md delete mode 100644 resources/docs/docs/midi/midi-setup.md diff --git a/resources/docs/docs/getting-started/introduction.md b/resources/docs/docs/getting-started/introduction.md index 58428baa..3c549329 100644 --- a/resources/docs/docs/getting-started/introduction.md +++ b/resources/docs/docs/getting-started/introduction.md @@ -1,18 +1,55 @@ +!!! question "Looking for v0 documentation ?" + Head over v0.openstagecontrol.ammd.net + +!!! warning "Incomplete documentation" + The documentation is currently being updated. + Welcome to Open Stage Control documentation. Along these pages you'll learn how to setup OSC on your system and everything you need to start building your own control interface. ## Overview -Open Stage Control consists in 3 modules: +Open Stage Control consists in 3 modules: the server, the launcher and the client. -- a server -- a launcher -- a client - -The **server** is the core of the software, it is responsible for sending and receiving all osc/midi messages, and act as a web server that serves the clients web application. It is written in Javascript and runs with Electron, a cross-platform framework based on Chromium. By default, the server alwyas opens a client window when it starts but it can be run in *headless* mode, without any window. +The **server** is the core of the software, it is responsible for sending and receiving all osc/midi messages, and act as a web server that serves the clients web application. It is written in Javascript and runs with Electron, a cross-platform framework based on Chromium. By default, the server always opens a client window when it starts but it can be run in *headless* mode, without any window. The **launcher** provides a simple way to configure and start the server. It appears whenever the server is not launched from a terminal or without being configured. The **client** is the web application made available by the server when it starts. Any compatible browser that connects to the server by browsing to its address will create a new client instance and be able to open and modify sessions. -!!! question "Looking for v0 docs ?" - Head over [here](https://v0.openstagecontrol.ammd.net) + +## Requirements + +The **server** can run on all [platforms supported by Electron](https://www.electronjs.org/docs/tutorial/support#supported-platforms). Systems that can run [Node.js](https://nodejs.org/en/) may also be able to run it in headless mode (see [Running with Node](./running-with-node.md)). + +The **client** requires Chromium/Chrome `60` or later to work (Linux, MacOS, Windows, Android, etc). iOS devices must be of version `10.3` or higher. + + +## Installation + +### Linux + +**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 +``` + +**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 + +### 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 + +### 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 diff --git a/resources/docs/docs/getting-started/running-from-sources.md b/resources/docs/docs/getting-started/running-from-sources.md index 62ddfb23..b02fb25d 100644 --- a/resources/docs/docs/getting-started/running-from-sources.md +++ b/resources/docs/docs/getting-started/running-from-sources.md @@ -1,3 +1,5 @@ +Running the app from the sources slightly differs from using prebuilt binaries: we'll build and launch the app with npm (node package manager). + ## Requirements - [Node.js](https://nodejs.org/en/#download) @@ -6,9 +8,8 @@ ## Run from sources -Running the app from the sources slightly differs from using built binaries : we'll build and launch the app with npm (node package manager). -**2. Download sources** +**Download** ```bash git clone https://github.com/jean-emmanuel/open-stage-control @@ -27,7 +28,7 @@ npm run build npm run build ``` -**3. Run !** +**Run** ```bash npm start [ -- options] diff --git a/resources/docs/docs/getting-started/server-setup.md b/resources/docs/docs/getting-started/server-setup.md deleted file mode 100644 index efe07168..00000000 --- a/resources/docs/docs/getting-started/server-setup.md +++ /dev/null @@ -1,46 +0,0 @@ -
-| Option | Description | -|---|---| -| --send | default targets for all widgets (ip: port / domain: port / midi: port_name pairs) | -| --load | session file to load | -| --state | state file to load | -| --custom-module | custom module file to load (custom options can be passed after the filename) | -| --port | http port of the server (default to 8080) | -| --osc-port | osc input port (default to --port) | -| --tcp-port | tcp server input port | -| --tcp-targets | tcp servers to connect to (ip: port pairs), does not susbtitute for --send | -| --midi | midi router settings | -| --debug | log received osc messages in the console | -| --no-gui | disable default gui | -| --theme | theme name or path (mutliple values allowed) | -| --client-options | client options (opt=value pairs) | -| --disable-vsync | disable gui's vertical synchronization | -| --force-gpu | ignore chrome's gpu blacklist | -| --read-only | disable session editing and session history changes | -| --remote-saving | disable remote session saving for hosts that don't match the regular expresion | -| --remote-root | set remote file browsing root folder | -| --instance-name | used to differenciate multiple instances in a zeroconf network | -| --fullscreen | launch in fullscreen mode (only affects the default client gui) | - -The following options can only be set when running the app from a terminal: - -
-| Option | Description | -|---|---| -| --disable-gpu | disable hardware acceleration | -| --inspect | enable node/electron inspector | -| --cache-dir | override default cache directory | -| --config-file | override default config file (defaults to cache-dir/config.json) | -| --help | Show help | -| --version | Show version number | - -## Running in a terminal on Windows - -Windows users launching the app from a terminal need to add a double dash (`--`) before their options: - -```bash -open-stage-control.exe -- --port 5555 [...] - -# when running from sources -npm start -- -- [options] -``` diff --git a/resources/docs/docs/getting-started/supported-platforms.md b/resources/docs/docs/getting-started/supported-platforms.md deleted file mode 100644 index f637ceb6..00000000 --- a/resources/docs/docs/getting-started/supported-platforms.md +++ /dev/null @@ -1,9 +0,0 @@ -# Supported platforms - -Open Stage Control is a *desktop* server application. It runs on all [platforms supported by Electron](https://electron.atom.io/docs/tutorial/supported-platforms/) or [Node](https://nodejs.org/en/) (in headless mode only, see [Running with Node](./running-with-node.md)). Any device running a compatible browser can connect to the server : - -- Chrome/Chromium version `60` or later (Linux, MacOS, Windows, Android, etc) -- iOS version `10.3` or later - -!!! info "Android / iOS app ?" - There is no native mobile application. The server's url can be added to the home screen to launch the interface in fullscreen. diff --git a/resources/docs/docs/midi/midi-setup.md b/resources/docs/docs/midi/midi-setup.md deleted file mode 100644 index 9e0f427a..00000000 --- a/resources/docs/docs/midi/midi-setup.md +++ /dev/null @@ -1,36 +0,0 @@ -## Requirements - -MIDI support requires additional software to be installed on the server's system: - -- python (2 or 3) -- python package [python-rtmidi](https://spotlightkid.github.io/python-rtmidi/installation.html) - -To install `python-rtmidi`, run `pip install python-rtmidi` (python 2) in a terminal or `pip3 install python-rtmidi` (python 3). - -!!! info "Why an additionnal dependency ?" - Providing cross-platform MIDI support is not trivial, as it requires OS-specific compilation that cannot be automated within Open Stage Control's current packaging workflow. Using a python addon seems to be the best compromise so far : the core app remains easy to build, and the extra dependency is easy to install. - -## Setup - -When running the app, the `-m / --midi` switch must be set; it accepts the following options (separated by spaces): - -- `list`: prints the available MIDI ports to the console; numbers in the first column may be used for `input`/`output` definition below -- `device_name:input,output`: connect to midi ports `input` and `output`; osc messages sent to target `midi:device_name` will be processed as midi events; Multiple devices can be declared. If the `device_name` contains white spaces, the declaration must be enquoted (ie `"spaced name:input,output"`). `device_name` doesn't need to match the actual midi device name, it is just an identifier (see [Widget settings](#widget-settings)). -- `sysex`: parse incomming system exclusive messages (disabled by default) -- `pc_offset`: send program changes with a `-1` offset to match some software/hardware implementations -- `path=/path/to/python`: indicates where to find python or python3 binary in case open stage control doesn't (`Error: spawn python3 ENOENT`) - -*Linux only:* - -- `device_name:virtual`: creates a virtual midi device with one input port and one output port -- `jack`: use JACK MIDI instead of ALSA (add as extra parameter). `rtmidi` must be compiled with `--jack-midi` flag for this to work. - - -## Widget setup - -In order to send MIDI messages, a widget must have at least one `target` formatted as follows: - -`midi:device_name` (where `device_name` is one of the declared midi devices) - -!!! warning - Messages received from a MIDI port only affect widgets that send to this port. diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index b0a307fe..4e6152a6 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -7,39 +7,39 @@ | 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. | +|
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. | +|
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. | +|
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. | |
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 is set. See https://openstagecontrol.ammd.net/v1/docs/widgets/scripting/ | +|
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 receives the defined event. 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` | -|
bypass#
| `boolean` | false | Set to `true` to prevent the widget from sending any osc message | +|
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` | +|
bypass#
| `boolean` | false | Set to `true` to prevent the widget from sending any osc message | ## Basics @@ -52,11 +52,11 @@ | property | type |default | description | | --- | --- | --- | --- | |
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) | -|
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. | +|
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)

Possible values: 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. | @@ -69,11 +69,11 @@ | property | type |default | description | | --- | --- | --- | --- | |
switch#
|||| -|
layout#
| `string` | "vertical" | | -|
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 | -|
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. | +|
layout#
| `string` | "vertical" | Possible values: 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

Possible values: tap, slide, click | +|
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. | @@ -86,8 +86,8 @@ | property | type |default | description | | --- | --- | --- | --- | | |||| -| | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center) | -| | `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 | +| | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Possible values: 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 | @@ -100,14 +100,14 @@ | 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) | -| | `string` | "circular" | Defines whether the menu's layout should be rendered in a circle or in a box | -| | `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` | +| | `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)

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

Possible values: 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` | @@ -120,9 +120,9 @@ | property | type |default | description | | --- | --- | --- | --- | |
input#
|||| -|
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center) | -|
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 | +|
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Possible values: 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 | @@ -135,11 +135,11 @@ | property | type |default | description | | --- | --- | --- | --- | |
input#
|||| -|
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center) | -|
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) | +|
align#
| `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)

Possible values: 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) | @@ -154,19 +154,19 @@ | 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. | -|
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified. | -|
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 | +|
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | +|
layout#
| `string` | "default" | Defines how children are laid out.

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

Possible values: 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 | +|
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 | +|
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 | @@ -179,22 +179,22 @@ | 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. | -| | `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 | +| | `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.

Possible values: 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 | +| | `integer` | "" | Defines the modal's state:`0` for closed, `1` for opened | | |||| -| | `array` | [] | Each element of the array must be a widget object | +| | `array` | [] | Each element of the array must be a widget object | @@ -207,9 +207,9 @@ | property | type |default | description | | --- | --- | --- | --- | |
clone#
|||| -|
widgetId#
| `string` | "" | `id` of the widget to clone | +|
widgetId#
| `string` | "" | `id` of the widget to clone | |
overrides#
|||| -|
props#
| `object` | \{} | Cloned widget's properties to override | +|
props#
| `object` | \{} | Cloned widget's properties to override | @@ -222,14 +222,14 @@ | 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. | -|
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 `/$`) | +|
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.

Possible values: 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 `/$`) | @@ -242,14 +242,14 @@ | property | type |default | description | | --- | --- | --- | --- | |
style#
|||| -|
css#
| `string` | "" | Available CSS variables:
- `--color-white:color;` (white keys color)
- `--color-black:color;` (black keys color) | +|
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 | +|
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 | @@ -262,10 +262,10 @@ | property | type |default | description | | --- | --- | --- | --- | |
style#
|||| -|
css#
| `string` | "" | The inputs/ouputs width can be adjusted by using the `.nodes` selector:

`.nodes { width: 25% }` | +|
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`). | +|
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`). | @@ -278,19 +278,19 @@ | 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. | -|
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified. | -|
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 | +|
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | +|
layout#
| `string` | "default" | Defines how children are laid out.

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

Possible values: 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 | +|
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 | +|
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 | @@ -303,19 +303,19 @@ | 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. | -|
justify#
| `string` | "start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified. | -|
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 | +|
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | +|
layout#
| `string` | "default" | Defines how children are laid out.

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

Possible values: 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 | +|
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 | +|
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 | @@ -330,9 +330,9 @@ | 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 | +|
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#
| `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) | @@ -345,7 +345,7 @@ | 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`) | +|
svg#
| `string` | "" | Svg xml definition:
- will be wrapped in a `< svg />` element
- `` commands support a special percent notation (`%x` and `%y`) | @@ -358,7 +358,7 @@ | 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 | +|
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 | @@ -371,12 +371,12 @@ | 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 | +|
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/...` | +|
value#
| `string` | "" | - File `url` or `path` (relative to the session file location by default, falling back to absolute path)
- Base64 encoded image : `data:image/...` | @@ -391,16 +391,16 @@ | 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 | +|
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#
| `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 | @@ -413,11 +413,11 @@ | 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 | +|
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 | @@ -430,11 +430,11 @@ | 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 | +|
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 | @@ -449,13 +449,13 @@ | property | type |default | description | | --- | --- | --- | --- | |
led#
|||| -|
mode#
| `string` | "intensity" | Defines how value is interpreted (see `value`) | -|
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. | +|
mode#
| `string` | "intensity" | Defines how value is interpreted (see `value`)

Possible values: 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#
| `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 | @@ -468,9 +468,9 @@ | 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. | +|
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.

Possible values: center, left, right | @@ -485,18 +485,18 @@ | 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` | +|
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`) | +|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) | @@ -509,11 +509,11 @@ | 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. | +|
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. | @@ -526,19 +526,19 @@ | 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']`) | +|
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` | +|
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` | +|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | @@ -553,21 +553,21 @@ | property | type |default | description | | --- | --- | --- | --- | |
fader#
|||| -|
design#
| `string` | "default" | Design style | -|
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 | +|
design#
| `string` | "default" | Design style

Possible values: 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` | +|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | @@ -580,19 +580,19 @@ | property | type |default | description | | --- | --- | --- | --- | |
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 | -|
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 | +|
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

Possible values: 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` | +|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | @@ -605,14 +605,14 @@ | 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 | -|
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 (`/ `) | +|
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

Possible values: 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` | +|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | @@ -625,21 +625,21 @@ | property | type |default | description | | --- | --- | --- | --- | |
fader#
|||| -|
design#
| `string` | "default" | Design style | -|
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 | +|
design#
| `string` | "default" | Design style

Possible values: 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` | +|
touchAddress#
| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | @@ -654,11 +654,11 @@ | property | type |default | description | | --- | --- | --- | --- | |
script#
|||| -|
event#
| `string` | "value" | Define which events trigger the script's execution. | +|
event#
| `string` | "value" | Define which events trigger the script's execution.

Possible values: value, keyboard | |
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 | +|
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

Possible values: keydown, keyup, both | diff --git a/resources/docs/docs/widgets/scripting.md b/resources/docs/docs/widgets/scripting.md index 45d85848..5961a49e 100644 --- a/resources/docs/docs/widgets/scripting.md +++ b/resources/docs/docs/widgets/scripting.md @@ -5,22 +5,28 @@ The `script` property allows widgets to run javascript code when their value upd - no `JS{{}}` wrapper, just the code - `@{}`, `OSC{}`, `JS{{}}` and `#{}` blocks are replaced with their value before the script's compilation +## Event-dependent variables + +**Event: value** + +- `id` (`string`): id of the widget that's reponsible for the value update +- `value`: widget's value + +**Event: keyboard** + +- `type` (`string`): `keydown` or `keyup` +- `key` (`string`): key name, +- `code` (`number`): key code +- `ctrl` (`boolean)`: `true` if ctrl key is pressed +- `shift` (`boolean`): `true` if shift key is pressed +- `alt` (`boolean`): `true` if alt key is pressed +- `meta` (`boolean`): `true` if meta key is pressed + + ## Available variables ---- -#### `value` - -Widget's value - ----- - -#### `id`: `string` - -Id of the widget that's reponsible for the value update - ----- - #### `get`: `function(id)` Returns the value of the first widget whose id is `"id"`. @@ -81,7 +87,7 @@ Reference: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage These work like their native equivalent, with an extra (optional) `id` argument. - `id` (optional): unique identifier. If a timeout with the same id is already running, it is cleared before the new one is created. If omitted, defaults to `undefined`. One can use `Math.random()` or `Date.now()` to force new id at each execution, though this might cause performance issues. `id`s are scoped to the widget's context: two timeouts with the same `id` in two different widgets can run concurrently -- `callback`: function to executed +- `callback`: function to be executed - `delay`: delay before execution is ms Reference: diff --git a/resources/docs/index.md b/resources/docs/index.md index 4066f781..559d1c14 100644 --- a/resources/docs/index.md +++ b/resources/docs/index.md @@ -1,7 +1,7 @@ # Open Stage Control ## Libre and modular OSC / MIDI controller - +*Soon, a nice screenshot*