From cb140a234f4b40245b6a1c91b8a31663f3a171d5 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 21 Apr 2019 09:38:14 +0200 Subject: [PATCH] docs: update --- resources/docs/docs/widgets-reference.md | 28 +++++++++++++----------- resources/docs/donate.md | 6 ++--- resources/src/scss/styles.scss | 2 +- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index c3386f47..aff75089 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -42,14 +42,14 @@ |

pips#

| `boolean` | true | Set to `false` to hide the scale | |

input#

| `boolean` | true | Set to `false` to hide the built-in input | |

meter#

| `boolean` | false | Set to true to display a vu-meter next in the fader
- the meter's `id` will be the same as the widget's with `/meter` appended to it
- the meter's `address` will be the same as the widget's with `/meter` appended to it | -|

compact#

| `boolean` | false | Set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display. | +|

compact#

| `boolean` | false | Set to `true` to display a compact alternative for the widget. If `input` is `true`, the input can be focused with a right-click (mouse only). Disables `pips` when enabled. | |

dashed#

| `boolean` | false | Set to `true` to display a dashed gauge | |

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}}`) | |

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 | -|

logScale#

| `boolean` | false | Set to `true` to use logarithmic scale | +|

logScale#

| `boolean`\|
`number` | false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. | |

unit#

| `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) | |

origin#

| `number` | "auto" | Defines the starting point's value of the fader's gauge | |

osc#

|||| @@ -65,8 +65,9 @@ |

style#

|||| |

css#

| `string` | "" | Available CSS variables:
- `--color-gauge: color;`
- `--color-knob: color;`
- `--color-pips: color;` | |

knob#

|||| -|

pips#

| `boolean` | true | Set to `false` to hide the scale | +|

pips#

| `boolean` | false | Set to `true` to show the scale's breakpoints | |

input#

| `boolean` | true | Set to `false` to hide the built-in input | +|

compact#

| `boolean` | false | Set to `true` to display a compact alternative for the widget. If `input` is `true`, the input can be focused with a right-click (mouse only). Disables `pips` when enabled. | |

dashed#

| `boolean` | false | Set to `true` to display a dashed gauge | |

angle#

| `number` | 270 | Defines the angle's width of the knob, in degrees | |

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 | @@ -74,7 +75,7 @@ |

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}}`) | |

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 | -|

logScale#

| `boolean` | false | Set to `true` to use logarithmic scale | +|

logScale#

| `boolean`\|
`number` | false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. | |

unit#

| `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) | |

origin#

| `number` | "auto" | Defines the starting point's value of the knob's gauge | |

osc#

|||| @@ -87,6 +88,7 @@ A knob that sends a relative direction infomation instead of an absolute value. | property | type |default | description | | --- | --- | --- | --- | |

encoder#

|||| +|

compact#

| `boolean` | false | Set to `true` to display a compact alternative for the widget. | |

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 | @@ -182,8 +184,8 @@ Two-dimensional slider. |

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` | false | Set to `true` to use logarithmic scale for the x axis (log10) | -|

logScaleY#

| `boolean` | false | Set to `true` to use logarithmic scale for the y axis (log10) | +|

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. | |

input#

| `boolean` | true | Set to false to hide the built-in input widget | |

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: `/ ` | |

osc#

|||| @@ -222,8 +224,8 @@ Multi-point XY pad. |

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` | false | Set to `true` to use logarithmic scale for the x axis (log10) | -|

logScaleY#

| `boolean` | false | Set to `true` to use logarithmic scale for the y axis (log10) | +|

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. | |

osc#

|||| |

touchAddress#

| `string` | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` | |

split#

| `boolean`\|
`object` | false | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/N/x` or `/N/y` appended to it, where N is the point's id (or the point's label if points is an array)

Can be set as an `object` to specify a different address : `['/0/x', '/0/y', '/1/x', '/2/y']`

Note: the widget will only respond to its original osc address, not to the splitted version | @@ -285,8 +287,8 @@ XY coordinates plot. |

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` | false | Set to `true` to use logarithmic scale for the x axis (log10) | -|

logScaleY#

| `boolean` | false | Set to `true` to use logarithmic scale for the y axis (log10) | +|

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) | @@ -306,7 +308,7 @@ Draws frequency response between from from an array of filter objects. |

resolution#

| `number` | 128 | Defines the number of points used to compute the frequency response | |

rangeY#

| `object` | {
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | |

origin#

| `number`\|
`boolean` | "auto" | Defines the y axis origin. Set to `false` to disable it | -|

logScaleX#

| `boolean` | false | Set to `true` to use logarithmic scale for the x axis (log10) | +|

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. | |

smooth#

| `boolean`\|
`number` | false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) | |

value#

|||| |

value#

| `array` | "" | Each item must be an object with the following properties
- `type`: string ("highpass", "highshelf", "lowpass", "lowshelf", "peak" or "notch")
- `freq`: number (filter's resonant frequency)
- `q`: number (Q factor)
- `gain`: number
- `on`: boolean | @@ -321,7 +323,7 @@ Display its value over time. |

duration#

| `number` | 1 | Defines visualization duration in seconds | |

range#

| `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 | -|

logScale#

| `boolean` | false | Set to `true` to use logarithmic scale for the y axis | +|

logScale#

| `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. | |

smooth#

| `boolean`\|
`number` | false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) | |

pips#

| `boolean` | true | Set to `false` to hide the scale | @@ -333,7 +335,7 @@ Display its value over time. | --- | --- | --- | --- | |

led#

|||| |

range#

| `object` | {
 "min": 0,
 "max": 1
}
| Value to led intensity mapping range | -|

logScale#

| `boolean` | false | Set to `true` to use a logarithmic mapping scale) | +|

logScale#

| `boolean`\|
`number` | false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. | ### rgbled diff --git a/resources/docs/donate.md b/resources/docs/donate.md index 9b1f7ef9..546ee66c 100644 --- a/resources/docs/donate.md +++ b/resources/docs/donate.md @@ -12,7 +12,7 @@ If you wish to be listed as a sponsor, please [contact me](mailto:jean-emmanuel@ ---- - @@ -20,7 +20,7 @@ AMMD hosts this website and made this project possible by funding its first 2 ye ---- - @@ -28,7 +28,7 @@ Discourse provides the community forum. ---- - diff --git a/resources/src/scss/styles.scss b/resources/src/scss/styles.scss index 76591be4..edf08b31 100644 --- a/resources/src/scss/styles.scss +++ b/resources/src/scss/styles.scss @@ -264,7 +264,7 @@ h1:first-child { } } -.sponsor-logo { +.sp-logo { display:inline-block; margin-top:20px; }