docs: user interface wip
This commit is contained in:
parent
ab9dc733d1
commit
c99bb149fa
9 changed files with 330 additions and 40 deletions
193
resources/docs/docs/getting-started/server-configuration.md
Normal file
193
resources/docs/docs/getting-started/server-configuration.md
Normal file
|
|
@ -0,0 +1,193 @@
|
|||
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.
|
||||
|
||||
## Options
|
||||
|
||||
#### `send`
|
||||
|
||||
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`
|
||||
|
||||
----
|
||||
|
||||
#### `load`
|
||||
|
||||
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.
|
||||
|
||||
|
||||
----
|
||||
|
||||
#### `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.
|
||||
|
||||
----
|
||||
|
||||
#### `port`
|
||||
|
||||
HTTP port for the server (default: `8080`).
|
||||
|
||||
----
|
||||
|
||||
#### `osc-port`
|
||||
|
||||
OSC (udp) input port (default: `port`).
|
||||
|
||||
----
|
||||
|
||||
#### `tcp-port`
|
||||
|
||||
OSC (tcp) input 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:
|
||||
|
||||
- `ip_address:port`
|
||||
- `host_name:port`
|
||||
|
||||
----
|
||||
|
||||
#### `midi`
|
||||
|
||||
[MIDI configuration](../midi/midi-configuration).
|
||||
|
||||
----
|
||||
|
||||
#### `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.
|
||||
|
||||
----
|
||||
|
||||
#### `fullscreen`
|
||||
|
||||
Start the built-in client window in fullscreen.
|
||||
|
||||
----
|
||||
|
||||
#### `theme`
|
||||
|
||||
Theme names or paths. See [Themes](../customization/themes).
|
||||
|
||||
----
|
||||
|
||||
#### `client-options`
|
||||
|
||||
Default [client options](../client-options).
|
||||
|
||||
----
|
||||
|
||||
#### `--disable-vsync`
|
||||
|
||||
Disable built-in client window's vertical synchronization.
|
||||
|
||||
----
|
||||
|
||||
#### `--force-gpu`
|
||||
|
||||
Disable built-in client window's gpu blacklist (may improve rendering performance in some cases).
|
||||
|
||||
----
|
||||
|
||||
#### `--read-only`
|
||||
|
||||
Disable session editing, and file saving.
|
||||
|
||||
----
|
||||
|
||||
#### `remote-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-root`
|
||||
|
||||
Set file browsing root folder.
|
||||
|
||||
----
|
||||
|
||||
#### `instance-name`
|
||||
|
||||
Used to differenciate multiple instances in a zeroconf network.
|
||||
|
||||
----
|
||||
|
||||
|
||||
## Other options
|
||||
|
||||
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.
|
||||
|
||||
----
|
||||
|
||||
#### `inspect`
|
||||
|
||||
Enable node inspector.
|
||||
|
||||
----
|
||||
|
||||
#### `cache-dir`
|
||||
|
||||
Override default cache directory (contains browser cache and localStorage data).
|
||||
|
||||
----
|
||||
|
||||
#### `config-file`
|
||||
|
||||
Override default config file location (contains session history and launcher config). Defaults to `cache-dir/config.json`.
|
||||
|
||||
----
|
||||
|
||||
#### `help`
|
||||
|
||||
Show help.
|
||||
|
||||
----
|
||||
|
||||
#### `version`
|
||||
|
||||
Show version number.
|
||||
|
||||
----
|
||||
|
||||
## Running in a terminal
|
||||
|
||||
Options name must be prepended with a double dash (`--`) in a terminal.
|
||||
|
||||
|
||||
## Running in a terminal on Windows
|
||||
|
||||
Windows users launching the app from a terminal need to add a double dash (`--`) and a space before their options:
|
||||
|
||||
```bash
|
||||
open-stage-control.exe -- --port 5555 [...]
|
||||
|
||||
# when running from sources
|
||||
npm start -- -- [options]
|
||||
```
|
||||
36
resources/docs/docs/midi/midi-configuration.md
Normal file
36
resources/docs/docs/midi/midi-configuration.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
## 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.
|
||||
|
|
@ -1,13 +1,50 @@
|
|||
!!! warning "Incomplete documentation"
|
||||

|
||||
|
||||
## Layout
|
||||
## 1. Menu
|
||||
|
||||
## Menu
|
||||
- Session
|
||||
- New session: create a new empty session and enable the editor
|
||||
- Open: browse session files on the server
|
||||
- Open recent: open a recent session on the server
|
||||
- Save / Save as: save session file on the server
|
||||
- Import: import a session file from the client's filesystem
|
||||
- Export: export a session file to the client's filesystem
|
||||
- State
|
||||
- Store: save all widgets' state to a persistent slot (stored in the client's cache)
|
||||
- Recall: apply state storer in the persistent slot
|
||||
- Send All: make all widgets send their current value
|
||||
- Open: browse state files on the server
|
||||
- Save / Save as: save state file on the server
|
||||
- Import: import a state file from the client's filesystem
|
||||
- Export: export a state file to the client's filesystem
|
||||
- Editor
|
||||
- Enable: togggle editor's state
|
||||
- Grid: toggle grid
|
||||
- Project tree: toggle project tree's visibility
|
||||
- Inspector: toggle inspector's visibility
|
||||
- Fullscreen: toggle fullscreen
|
||||
- Prevent sleep (mobile only): attempt to prevent device from going to sleep when idle
|
||||
|
||||
## 2. Sidepanels
|
||||
|
||||
The sidepanels are only visible when the editor is active, they can be resized and/or hidden. Both are describe in the [editor](./editor) section.
|
||||
|
||||
## 3. Session
|
||||
|
||||
It is the main component, it contains all the widgets and takes all the available space when the sidepanels are closed.
|
||||
|
||||
## 4. Notifications
|
||||
|
||||
Notifications appear in the lower right corner, they are usually used to convey server status informations.
|
||||
|
||||
## 5. Modals
|
||||
|
||||

|
||||
|
||||
Modals are virtual popup windows that may contain various content: file browser, color picker, error, widgets...
|
||||
|
||||
## Keyboard shortcuts
|
||||
|
||||
The following shortcuts are always available:
|
||||
|
||||
<div class="force-full-table"></div>
|
||||
| Shortcut | Description |
|
||||
|---|---|
|
||||
|
|
|
|||
|
|
@ -1,61 +1,62 @@
|
|||
!!! warning "Incomplete documentation"
|
||||
|
||||
## Widget selection
|
||||
|
||||
## Context menu
|
||||
Clicking on a widget, on a tab label or on an item in the project tree selects the widgets for edition:
|
||||
|
||||
Right clicking / long touch on a widget or on a tab will also display a context menu providing useful utilities :
|
||||
- All its editable properties are shown in the inspector panel
|
||||
- The corresponding item in the project tree is highlighted
|
||||
- A selection outline is drawn around the widget
|
||||
- Dragging / Resizing handles are added to the widget
|
||||
|
||||
- `Show in tree`: show widget in project tree
|
||||

|
||||
|
||||
|
||||
## Menu
|
||||
|
||||
Right clicking on a widget displays a menu with the following actions
|
||||
|
||||
- `Show in tree`: show widget in project tree (hidden when clicking in the project tree)
|
||||
- `Copy`: copy widget's data
|
||||
- `Cut`: copy widget's data and delete selected widget
|
||||
- `Paste`: paste copied widget in selected container
|
||||
- `Paste`: paste the widget as is
|
||||
- `ID + 1` : increments the id of the copied widget (and all its children) before pasting
|
||||
- `Clone` : create a clone widget targetting the copied widget
|
||||
- `Paste`: paste the widget as is
|
||||
- `ID + 1` : increments the id of the copied widget (and all its children) before pasting
|
||||
- `Clone` : create a clone widget targetting the copied widget
|
||||
- `Add widget`: create a new widget in selected container
|
||||
- `Add tab`: create a new tab in selected container
|
||||
- `Delete`: delete selected tab or widget
|
||||
|
||||
## Open / Save
|
||||
|
||||
By default, sessions are saved and opened on the server's filesystem. When saving a session opened by mutliple clients, these will reload the session file automatically.
|
||||
## Inspector
|
||||
|
||||
!!! info
|
||||
It is possible to limit this feature to specific client addresses by using the server's `--remote-saving` option. For example:
|
||||
Selected widget's properties are displayed and can be modified in the sidepanel. The [properties reference](../widgets/properties-reference) lists the available properties for each widget type.
|
||||
|
||||
`open-stage-control --remote-saving "127.0.0.1|192.168.0.10"`
|
||||
Property fields are all multiline (press `shift + enter` for new line).
|
||||
|
||||
Will disable remote saving except for the clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`.
|
||||
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.
|
||||
|
||||
## Import / Export
|
||||
|
||||
Sessions can be exported/imported on the device's filesystem, doing so has a few limitations:
|
||||
- the session's name won't appear in the window's title
|
||||
- the session won't be added to the session history
|
||||
## Project tree
|
||||
|
||||
## Grid
|
||||
|
||||
By default, widget resizing / dragging snaps to a 10 pixel wide grid. Its width can be customized in the editor (when it's enabled). Setting its width to 1 will disable it. Note that the grid doesn't affect manual setting of a widget's size / position.
|
||||
|
||||
## Properties
|
||||
|
||||
Selected widget's properties are displayed and can be modified in the sidepanel. The [widgets reference](/docs/widgets-reference) section lists the available properties for each widget type. 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. All input will be converted to standard JSON.
|
||||
!!! warning "Incomplete documentation"
|
||||
|
||||
|
||||
## Widget resizing / dragging
|
||||
|
||||
Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle. Using this feature will convert position and size values to plain number values, thus breaking previously set percent or inherited values.
|
||||
Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle. If the widget's position/size was written in percents, the editor will try to keep using percents.
|
||||
|
||||
When the grid is enabled, widget resizing / dragging snaps to a 10 pixel wide grid.
|
||||
|
||||
|
||||
## Multi-widgets editing
|
||||
|
||||
!!! info ""
|
||||
\* *Multi-widgets editing*
|
||||
Multiple widgets can be edited at once.
|
||||
|
||||
- selection can only contain sibling widgets (same direct parent)
|
||||
- context-menu actions and properties changes apply to all selected widgets
|
||||
- resizing / dragging will affect all selected widgets, relatively to the first selected widget
|
||||
- The inspector will only display properties that are shared by all selected widgets
|
||||
- Selection can only contain sibling widgets (same direct parent)
|
||||
- Context-menu actions and properties changes apply to all selected widgets
|
||||
- Resizing / Dragging will affect all selected widgets, relatively the selection's size and position
|
||||
|
||||
|
||||
## Keyboard shortcuts
|
||||
|
|
@ -64,7 +65,8 @@ The following shortcuts are available only when the editor is enabled:
|
|||
|
||||
| Shortcut | Description |
|
||||
|---|---|
|
||||
| `mod + click`* | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.|
|
||||
| `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 |
|
||||
|
|
|
|||
|
|
@ -1,9 +1,31 @@
|
|||
!!! warning "Incomplete documentation"
|
||||

|
||||
|
||||
## 1. Menu
|
||||
|
||||
- Start: start the server (hidden when started)
|
||||
- Stop: stop the server (hidden when stopped)
|
||||
- New window: open a new client window (hidden when stopped)
|
||||
- Load: load server configration from file
|
||||
- Save / Save as: save server configuration to file
|
||||
- List MIDI devices: list available MIDI devices in the console
|
||||
- Console:
|
||||
- Clear: clear console
|
||||
- Autoscrell: enable/disable console autoscroll
|
||||
- Check for update at startup: enable/disable this feature
|
||||
|
||||
|
||||
The "play/stop" icon can be used to start and stop the server without opening the menu.
|
||||
|
||||
## 2. Configuration form
|
||||
|
||||
Each server option is displayed here. When clicking on an option's label, a short help will be printed in the console. When an option is not correctly set, it's label will turn to orange and an error message will be printed in the console.
|
||||
|
||||
## 3. Console
|
||||
|
||||
The console diplays various informations, runtime errors and server debug messages.
|
||||
|
||||
## Keyboard shortcuts
|
||||
|
||||
The following shortcuts are always available:
|
||||
|
||||
<div class="force-full-table"></div>
|
||||
| Shortcut | Description |
|
||||
|---|---|
|
||||
|
|
|
|||
BIN
resources/docs/img/screenshots/client.png
Normal file
BIN
resources/docs/img/screenshots/client.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/docs/img/screenshots/editor.png
Normal file
BIN
resources/docs/img/screenshots/editor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
BIN
resources/docs/img/screenshots/launcher.png
Normal file
BIN
resources/docs/img/screenshots/launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
BIN
resources/docs/img/screenshots/modal.png
Normal file
BIN
resources/docs/img/screenshots/modal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Loading…
Add table
Add a link
Reference in a new issue