docs/log: catch up
This commit is contained in:
parent
a0f76325ac
commit
729c81b6bb
4 changed files with 85 additions and 36 deletions
17
CHANGELOG.md
17
CHANGELOG.md
|
|
@ -1,5 +1,22 @@
|
|||
# Changelog
|
||||
|
||||
## 0.19.0
|
||||
|
||||
- ui
|
||||
- general design improved, heavily inspired by [budislavTVP](http://budislavtvp.deviantart.com/) works; color schemes are much simpler and easier to customize (try `--theme light` !)
|
||||
- widgets
|
||||
- fader / meter: added `dashed` option;
|
||||
- knob: removed `compact` option; added `dashed` option;
|
||||
- panel: remove inner widgets dark borders
|
||||
- buttons: new `dropdown` widget
|
||||
- midi
|
||||
- replaced `pyo` dependency with [`pyrtmidi`](https://github.com/patrickkidd/pyrtmidi): lighter, dedicated to midi, and handling virtual ports (no `mididings` dependency anymore)
|
||||
- pitchbend value is now a single integer between 0 and 16383
|
||||
- main
|
||||
- added `--url-options` command line option
|
||||
- documentation
|
||||
- new style, better organization
|
||||
|
||||
## 0.18.0
|
||||
|
||||
:warning: **Breaking changes** :warning:
|
||||
|
|
|
|||
|
|
@ -1,56 +1,69 @@
|
|||
# Sending / Receiving MIDI
|
||||
|
||||
Open Stage Control can send and receive midi messages using pyo / portmidi.
|
||||
Open Stage Control can send and receive midi messages using a tiny python addon.
|
||||
|
||||
## Requirements
|
||||
|
||||
MIDI support requires additionnal softwares to be installed on the server's system:
|
||||
|
||||
- `python 2.7`
|
||||
- [`pyo`](http://ajaxsoundstudio.com/software/pyo/) >= 0.8.3
|
||||
- python 2 / 3
|
||||
- [pyrtmidi](https://github.com/patrickkidd/pyrtmidi)
|
||||
|
||||
**Why an additionnal dependency ?**
|
||||
|
||||
Providing cross-platform midi support is not trivial, as it requires os-specific compilations that cannot be automated within Open Stage Control's current packaging workflow. Using a python addon seems the best compromise so far : the core app remains easy to build, and the extra dependency is easy to install.
|
||||
|
||||
Note: `pyo` doesn't support Windows 64bit.
|
||||
|
||||
## Setup
|
||||
|
||||
When running the app, the `-m / -midi` switch must be set; it accepts the following arguments (separated by spaces):
|
||||
When running the app, the `-m / -midi` switch must be set; it accepts the following options (separated by spaces):
|
||||
|
||||
- `list`: prints the available midi inputs / outputs
|
||||
- `device_name:input,output`, where:
|
||||
- `device_name`
|
||||
- `input` is the midi input number (midi message sent to open-stage-control)
|
||||
- `output` is the midi output number (midi message sent from open-stage-control)
|
||||
- `list`: prints the available midi ports
|
||||
- `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
|
||||
|
||||
**Linux only**
|
||||
*This works under linux only:*
|
||||
|
||||
- `device_name:virtual`: (requires [`mididings`](http://das.nasophon.de/mididings/) to be installed) creates a virtual midi device called 'Open Stage Control' with the following ports :
|
||||
- `_virtual_loopback_x`: used internally, don't connect anything to it.
|
||||
- `device_name_in`: virtual midi input
|
||||
- `device_name_out`: virtual midi output
|
||||
|
||||
Multiple devices can be declared (multiple virtual devices as well).
|
||||
- `device_name:virtual`: creates a virtual midi device with one input port and one output port
|
||||
- `jack`: use jack-midi instead of alsa (pyrtmidi midi must be compiled with the `--jack-midi` flag in order to make this work)
|
||||
|
||||
## Widget settings
|
||||
|
||||
In order to send midi messages, a widget must have at least one `target` formatted as follow;
|
||||
|
||||
`midi:device_name` (where `device_name` is one of the declared midi devices (see previous section))
|
||||
`midi:device_name` (where `device_name` is one of the declared midi devices)
|
||||
|
||||
## Supported commands
|
||||
## Supported events
|
||||
|
||||
Here are the supported commands. One must use the `preArgs` option to make sure the correct number of arguments is sent.
|
||||
|
||||
| address | args | note |
|
||||
|---------|------|------|
|
||||
| `/note` | `channel note velocity` | (if `velocity` is `0`, a `note off` will be sent) |
|
||||
| `/control` | `channel cc value` | |
|
||||
| `/program` | `channel program` | |
|
||||
| `/pitch` | `channel LSB MSB` | |
|
||||
!!! tip ""
|
||||
Use the `preArgs` option to make sure the correct number of arguments is sent.
|
||||
|
||||
|
||||
- `channel` is an integer between 1 and 16
|
||||
- `ǹote`, `velocity`, `cc`, `value`, `program`, `LSB`,`MSB` are integers between 0 and 127
|
||||
|
||||
### `/note channel note velocity`
|
||||
|
||||
NoteOn event or noteOff if velocity equals `0`.
|
||||
|
||||
- `channel`: integer between 1 and 16
|
||||
- `note`: integer between 0 and 127
|
||||
- `velocity`: integer between 0 and 127
|
||||
|
||||
### `/control channel cc value`
|
||||
|
||||
Control change event.
|
||||
|
||||
- `channel`: integer between 1 and 16
|
||||
- `cc`: integer between 0 and 127
|
||||
- `value`: integer between 0 and 127
|
||||
|
||||
### `/program channel program`
|
||||
|
||||
Program change event.
|
||||
|
||||
- `channel`: integer between 1 and 16
|
||||
- `program`: integer between 0 and 127
|
||||
|
||||
### `/pitch channel pitch`
|
||||
|
||||
PitchWheel event.
|
||||
|
||||
- `channel`: integer between 1 and 16
|
||||
- `pitch`: integer between 0 and 16383
|
||||
|
|
|
|||
|
|
@ -75,3 +75,18 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
|
|||
- usage:
|
||||
- `array` of possible values to switch between : `[1,2,3]`
|
||||
- `object` of `"label":value` pairs
|
||||
|
||||
## Dropdown
|
||||
```js
|
||||
{
|
||||
type:'dropdown',
|
||||
// etc
|
||||
}
|
||||
```
|
||||
|
||||
### `values`
|
||||
- type: `array|object`
|
||||
- default: `{"Value 1":1,"Value 2":2}`
|
||||
- usage:
|
||||
- `array` of possible values to switch between : `[1,2,3]`
|
||||
- `object` of `"label":value` pairs
|
||||
|
|
|
|||
|
|
@ -22,16 +22,20 @@ Sliders are unidimensional widgets that output one value at a time.
|
|||
- default: `false`
|
||||
- usage: set to `true` to invert the pip's and fader's position
|
||||
|
||||
### `noPip`
|
||||
### `pips`
|
||||
- type: `boolean`
|
||||
- default: `false`
|
||||
- usage: set to `true` to hide the scale
|
||||
- default: `true`
|
||||
- usage: set to `false` to hide the scale
|
||||
|
||||
### `compact`
|
||||
- type: `boolean`
|
||||
- default: `false`
|
||||
- usage: set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display (right-click/long-touch still triggers it).
|
||||
|
||||
### `dashed`
|
||||
- type: `boolean`
|
||||
- default: `false`
|
||||
- usage: set to `true` to display a dashed gauge
|
||||
|
||||
### `range`
|
||||
- type: `object`
|
||||
|
|
@ -112,15 +116,15 @@ range: {
|
|||
```
|
||||
|
||||
|
||||
### `noPip`
|
||||
### `pips`
|
||||
- type: `boolean`
|
||||
- default: `true`
|
||||
- usage: set to `false` to show the scale
|
||||
- usage: set to `false` to hide the scale
|
||||
|
||||
### `compact`
|
||||
- type: `boolean`
|
||||
- default: `false`
|
||||
- usage: set to `true` to display a compact alternative for the widget. Disables mouse/touch focusing on the value display.
|
||||
- usage: set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display (right-click/long-touch still triggers it).
|
||||
|
||||
### `angle`
|
||||
- type: `number`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue