Dear forum members,
I´m sending out the rgb values of my mixerBankZone channels via mOnColorChange but somehow the message data is getting messed up.
Here is my color data vs log data:
SOURCE
r
g
b
-
r
g
b
-
r
g
b
original color data
255
120
0
0
200
180
70
0
220
logged data
0
109
126
99
89
126
0
109
126
The values get halfed which is reasonable I guess because the way the process works. But there is also a shift of the values and some values seem to leak through to newer messages.
This is my code:
Ah, now I see. I recall a similar case in my thread for the Keylab MK2. From what I can remember right now, this has to do with a property of the color out of the r,g,b, perhaps a? Was it a multiplier? I really can’t remember now, sorry… If I find the post I will share it here
Ah, sorry, now I see the problem.
It was hidden, because I was unfortunately too lazy to scroll right
Your function has wrong arguments. The surfaceElements do not support the activeMapping argument. I guess you pasted it from a source where a hostValue.mOnColorChange was used.
Here’s how to correct this:
surfaceElements.buttons_tracks[channelIndex].mSurfaceValue.mOnColorChange = function (activeDevice, r, g, b, a, isActive) {