diff --git a/CHANGELOG.md b/CHANGELOG.md index 83580d50..ee843097 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.48.9 +- bug fixes: + - missing `target` property for `plots/*` widgets, required for MIDI bindings - editor: - convert invalid quote characters automatically to avoid errors diff --git a/resources/docs/docs/midi.md b/resources/docs/docs/midi.md index d6fbf78e..177b3067 100644 --- a/resources/docs/docs/midi.md +++ b/resources/docs/docs/midi.md @@ -31,6 +31,10 @@ In order to send MIDI messages, a widget must have at least one `target` formatt `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. + + ## Supported MIDI messages !!! warning "" diff --git a/src/client/app/widgets/plots/eq.js b/src/client/app/widgets/plots/eq.js index 787ece70..dfc77509 100644 --- a/src/client/app/widgets/plots/eq.js +++ b/src/client/app/widgets/plots/eq.js @@ -23,7 +23,7 @@ module.exports = class Eq extends _plots_base { logScaleX: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm\'s base.'}, smooth: {type: 'boolean|number', value: false, help: 'Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`)'}, - }, ['target', 'precision', 'bypass'], { + }, ['precision', 'bypass'], { value: {type: 'array', value: '', help: [ 'Each item must be an object with the following properties', diff --git a/src/client/app/widgets/plots/frame.js b/src/client/app/widgets/plots/frame.js index d7aa378c..85700785 100644 --- a/src/client/app/widgets/plots/frame.js +++ b/src/client/app/widgets/plots/frame.js @@ -19,7 +19,7 @@ class Frame extends Widget { border: {type: 'boolean', value: true, help: 'Set to `false` to disable the borders and background-color'}, - }, ['color', 'target', 'precision', 'bypass'], { + }, ['color', 'precision', 'bypass'], { label: {type: 'string|boolean', value: 'auto', help: [ 'Set to `false` to hide completely', diff --git a/src/client/app/widgets/plots/html.js b/src/client/app/widgets/plots/html.js index 573eda52..d8000fe4 100644 --- a/src/client/app/widgets/plots/html.js +++ b/src/client/app/widgets/plots/html.js @@ -23,7 +23,7 @@ class Html extends Widget { ]}, border: {type: 'boolean', value: true, help: 'Set to `false` to disable the borders and background-color'}, - }, ['color', 'target', 'precision', 'bypass'], {}) + }, ['color', 'precision', 'bypass'], {}) } diff --git a/src/client/app/widgets/plots/image.js b/src/client/app/widgets/plots/image.js index 775ef500..5477b15a 100644 --- a/src/client/app/widgets/plots/image.js +++ b/src/client/app/widgets/plots/image.js @@ -26,7 +26,7 @@ module.exports = class Image extends Widget { 'When true, sending `reload` to the widget reloads its image without changing its value' ]} - }, ['color', 'target', 'precision', 'bypass'], { + }, ['color', 'precision', 'bypass'], { value: {type: 'string', value: '', help: [ '- File `url` or `path` (relative to the session file location by default, falling back to absolute path)', diff --git a/src/client/app/widgets/plots/led.js b/src/client/app/widgets/plots/led.js index b22eba36..ae7d1c0e 100644 --- a/src/client/app/widgets/plots/led.js +++ b/src/client/app/widgets/plots/led.js @@ -13,7 +13,7 @@ module.exports = class Led extends Widget { range: {type: 'object', value: {min:0,max:1}, help: 'Value to led intensity mapping range'}, logScale: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm\'s base.'}, - }, ['target', 'precision', 'bypass'], {}) + }, ['precision', 'bypass'], {}) } diff --git a/src/client/app/widgets/plots/meter.js b/src/client/app/widgets/plots/meter.js index d8c4b3bc..4bf05dd9 100644 --- a/src/client/app/widgets/plots/meter.js +++ b/src/client/app/widgets/plots/meter.js @@ -31,7 +31,7 @@ module.exports = class Meter extends Fader { 'Examples: `[\'blue\', \'red\']`, {\'0\': \'blue\', \'0.9\': \'blue\', \'1\': \'red\'} ' ]}, - }, ['target', 'precision', 'bypass'], { + }, ['precision', 'bypass'], { css: {type: 'string', value: '', help: [ 'Available CSS variables:', diff --git a/src/client/app/widgets/plots/plot.js b/src/client/app/widgets/plots/plot.js index cc62baf0..10e6efab 100644 --- a/src/client/app/widgets/plots/plot.js +++ b/src/client/app/widgets/plots/plot.js @@ -25,7 +25,7 @@ module.exports = class Plot extends _plots_base { smooth: {type: 'boolean|number', value: false, help: 'Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`)'}, pips:{type: 'boolean', value: true, help: 'Set to `false` to hide the scale'}, - }, ['target', 'precision', 'bypass'], { + }, ['precision', 'bypass'], { value: {type: 'array|string', value: '', help: [ '- `Array` of `y` values', diff --git a/src/client/app/widgets/plots/rgbled.js b/src/client/app/widgets/plots/rgbled.js index 6bae6abe..9a505655 100644 --- a/src/client/app/widgets/plots/rgbled.js +++ b/src/client/app/widgets/plots/rgbled.js @@ -6,7 +6,7 @@ module.exports = class Rbgled extends Widget { static defaults() { - return super.defaults({}, ['color', 'target', 'precision', 'bypass'], { + return super.defaults({}, ['color', 'precision', 'bypass'], { value: {type: 'array|string', value: '', help: [ '- `Array`: `[r, g, b]` (`r`, `g` and `b` between `0` and `255`)', diff --git a/src/client/app/widgets/plots/svg.js b/src/client/app/widgets/plots/svg.js index d3dc5463..91070d8a 100644 --- a/src/client/app/widgets/plots/svg.js +++ b/src/client/app/widgets/plots/svg.js @@ -19,7 +19,7 @@ class Svg extends Widget { border: {type: 'boolean', value: true, help: 'Set to `false` to disable the borders and background-color'}, - }, ['color', 'target', 'precision', 'bypass'], {}) + }, ['color', 'precision', 'bypass'], {}) } diff --git a/src/client/app/widgets/plots/text.js b/src/client/app/widgets/plots/text.js index b7761623..391292f5 100644 --- a/src/client/app/widgets/plots/text.js +++ b/src/client/app/widgets/plots/text.js @@ -23,7 +23,7 @@ module.exports = class Text extends Widget { ]}, align: {type: 'string', value: '', help: 'Set to `left` or `right` to change text alignment (otherwise center)'}, - }, ['target', 'precision', 'bypass'], {}) + }, ['precision', 'bypass'], {}) } diff --git a/src/client/app/widgets/plots/visualizer.js b/src/client/app/widgets/plots/visualizer.js index a3bef5fe..b96eb461 100644 --- a/src/client/app/widgets/plots/visualizer.js +++ b/src/client/app/widgets/plots/visualizer.js @@ -22,7 +22,7 @@ module.exports = class Visualizer extends _plots_base { smooth: {type: 'boolean|number', value: false, help: 'Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`)'}, pips:{type: 'boolean', value: true, help: 'Set to `false` to hide the scale'}, - }, ['target', 'precision', 'bypass'], {}) + }, ['precision', 'bypass'], {}) }