summaryrefslogtreecommitdiffstats
path: root/res/controllers/midi-components-0.0.js
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2019-11-19 18:48:40 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-02-29 17:48:41 +0100
commitf97a15b13a2c3624c85404291b09655d2cb6817c (patch)
tree87d31d5ba4f777421b3536dd2072dc44a459064e /res/controllers/midi-components-0.0.js
parente1cc9be5aec016aabf5a9241598aa01bb53f2076 (diff)
controllers/colormapperjsproxy: Add separate getNearestValue method
Diffstat (limited to 'res/controllers/midi-components-0.0.js')
-rw-r--r--res/controllers/midi-components-0.0.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/controllers/midi-components-0.0.js b/res/controllers/midi-components-0.0.js
index 23e2a74c99..6117793f9a 100644
--- a/res/controllers/midi-components-0.0.js
+++ b/res/controllers/midi-components-0.0.js
@@ -332,8 +332,8 @@
},
outputColor: function (colorCode) {
if (this.colors !== undefined) {
- var nearestColor = this.colors.getNearestColor(colorCode);
- this.send(nearestColor);
+ var nearestColorValue = this.colors.getNearestValue(colorCode);
+ this.send(nearestColorValue);
} else {
if (this.sendRGB === undefined) {
print("ERROR: no function defined for sending RGB colors");