summaryrefslogtreecommitdiffstats
path: root/res/controllers/midi-components-0.0.js
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-17 17:28:24 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-17 17:28:24 +0100
commit21f3208f069568b69ae875e3256f3dcc6a27b891 (patch)
tree407fc1fd709f3e4aa983f25b5eed4ac113685304 /res/controllers/midi-components-0.0.js
parent1bdff97670a53775c7c493aecdc8ce091ea48bb6 (diff)
controllers/midi-components: Add more whitespace fixes
Diffstat (limited to 'res/controllers/midi-components-0.0.js')
-rw-r--r--res/controllers/midi-components-0.0.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/res/controllers/midi-components-0.0.js b/res/controllers/midi-components-0.0.js
index eef6828c1d..3b5d41f5b6 100644
--- a/res/controllers/midi-components-0.0.js
+++ b/res/controllers/midi-components-0.0.js
@@ -68,7 +68,7 @@
input: function (channel, control, value, _status, _group) {
this.inSetParameter(this.inValueScale(value));
},
- outValueScale: function (value) {return value * this.max;},
+ outValueScale: function (value) { return value * this.max; },
output: function (value, _group, _control) {
this.send(this.outValueScale(value));
},
@@ -92,7 +92,7 @@
engine.setValue(this.group, this.inKey, value);
},
inToggle: function () {
- this.inSetValue( ! this.inGetValue());
+ this.inSetValue(!this.inGetValue());
},
outGetParameter: function () {
@@ -108,7 +108,7 @@
engine.setValue(this.group, this.outKey, value);
},
outToggle: function () {
- this.outSetValue( ! this.outGetValue());
+ this.outSetValue(!this.outGetValue());
},
connect: function () {
@@ -313,7 +313,7 @@
},
getColor: function() {
if (this.colorIdKey !== undefined) {
- return color.predefinedColorFromId(engine.getValue(this.group,this.colorIdKey));
+ return color.predefinedColorFromId(engine.getValue(this.group, this.colorIdKey));
} else {
return null;
}
@@ -322,7 +322,7 @@
var outval = this.outValueScale(value);
// WARNING: outputColor only handles hotcueColors
// and there is no hotcueColor for turning the LED
- // off. So the `send()` function is responsible for turning the
+ // off. So the `send()` function is responsible for turning the
// actual LED off.
if (this.colorIdKey !== undefined && outval !== this.off) {
this.outputColor(engine.getValue(this.group, this.colorIdKey));
@@ -350,7 +350,7 @@
Button.prototype.connect.call(this); // call parent connect
if (undefined !== this.group && this.colorIdKey !== undefined) {
this.connections[1] = engine.makeConnection(this.group, this.colorIdKey, function (id) {
- if (engine.getValue(this.group,this.outKey)) {
+ if (engine.getValue(this.group, this.outKey)) {
this.outputColor(id);
}
});