From 1237c3f434c1bf867e165d9238a7598ae79829db Mon Sep 17 00:00:00 2001 From: bordun Date: Mon, 6 Apr 2020 15:56:12 +0200 Subject: [PATCH] docs: making progress --- resources/docs/docs/widgets/general-mechanics.md | 10 +++++----- resources/docs/docs/widgets/properties-reference.md | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/docs/docs/widgets/general-mechanics.md b/resources/docs/docs/widgets/general-mechanics.md index 6dcc7653..f1cdeacb 100644 --- a/resources/docs/docs/widgets/general-mechanics.md +++ b/resources/docs/docs/widgets/general-mechanics.md @@ -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. diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 3c0d3992..cecab37d 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -39,6 +39,7 @@ |
typeTags#
| `string` | "" | Defines the osc argument types, one letter per argument (including preArgs)
- If empty, the types are infered automatically from the values (with numbers casted to floats by default)
- If there are more arguments than type letters, the last type is used for the extra arguments

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