docs: making progress

This commit is contained in:
bordun 2020-04-06 15:56:12 +02:00
parent f5682fe9db
commit 3936d694bc
2 changed files with 6 additions and 5 deletions

View file

@ -6,7 +6,7 @@ These are interaction events widgets are likely to respond to:
|---|---|---|
| Mousedown | Tap | Handled at pressing time, not releasing. |
| Click | Click | Handled at release time. |
| Double Click | Double Tap | Some widgets handle double click / double tap events. |
| Double Click | Double Tap | Some widgets handle double click / double tap events. |
| Drag | Drag | The widgets respond to mouse and touch drag gestures with a 1:1 precision ratio. |
@ -26,15 +26,15 @@ When interacted with, widgets with at least one target (including the server's d
/address ...preArgs ...value
```
If they widget has MIDI targets, the server will try to convert the osc message into a MIDI message (see [MIDI messages](../midi/midi-messages.md)).
If they have MIDI targets, the server will try to convert the osc messages into a MIDI messages (see [MIDI messages](../midi/midi-messages.md)).
## Receiving messages
When an osc message is received, it updates every widgets that meet the following conditions
When an osc message is received, it updates every widgets that meets the following conditions
- exact same `address`
- same `preArgs`
- same `address`
- same `preArgs` (no distinction between integers and round floats )
The remaining arguments after `preArgs` are passed to the widget.

View file

@ -39,6 +39,7 @@
| <h6 id="typeTags" class="dynamic">typeTags<a class="headerlink" href="#typeTags" title="Permanent link">#</a></h6> | `string` | <code>""</code> | Defines the osc argument types, one letter per argument (including preArgs)<br/>- If empty, the types are infered automatically from the values (with numbers casted to floats by default)<br/>- If there are more arguments than type letters, the last type is used for the extra arguments<br/><br/>See http://opensoundcontrol.org/spec-1_0 for existing typetags |
| <h6 id="decimals" class="dynamic">decimals<a class="headerlink" href="#decimals" title="Permanent link">#</a></h6> | `integer` | <code>2</code> | Defines the number of decimals to send. |
| <h6 id="target" class="dynamic">target<a class="headerlink" href="#target" title="Permanent link">#</a></h6> | `string`&vert;<br/>`array`&vert;<br/>`null` | <code>""</code> | This defines the targets of the widget's OSC messages<br/>- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:port"]`<br/>- If midi is enabled, targets can be `midi:device_name`<br/>- The special item `"self"` can be used to refer to the emitting client directly.<br/>- If no target is set, messages can still be sent if the server has default targets<br/>- The server's default targets can be bypassed by setting one of the items to `null` |
| <h6 id="ignoreDefaults" class="">ignoreDefaults<a class="headerlink" href="#ignoreDefaults" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to ignore the server's default targets |
| <h6 id="bypass" class="dynamic">bypass<a class="headerlink" href="#bypass" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to prevent the widget from sending any osc message |</div>
## Basics