Forums > Max For Live

clip color code has changed in live 8.1.4 ?

July 12, 2010 | 4:17 pm

when I get property "color" of a clip, the color code returned by Live.API has changed since Live 8.1.4 ;
for ex, in Live 8.1.3 (and previous versions), first clip color code (red) was 9571075 ; now in 8.1.4, it is 15549221.

The color code used in previous Live version used to match the color code used in JazzMutant Lemur (and it was very convenient !) ; now, the new color code looks almost the same, but much lighter.

bug ? new feature ?
what is the rule to convert this code to RGB ?
should I modify all my patches & devices using this new code, .. or wait for a fix ?

//I’ve posted this question to the Ableton forum as well : http://forum.ableton.com/viewtopic.php?p=1160602#p1160602 and got no reply //

thanks in advance

Mathieu

_________________
________________
Mathieu Chamagne
http://mathieuchamagne.com

http://www.maxobjects.com


July 12, 2010 | 11:56 pm

Bumpety bump.


July 15, 2010 | 12:24 pm

with Live 8.1.5b1 + Max 5.1.5(43003) : same problem…

any hint ?

thanks in advance

Mathieu

________________
Mathieu Chamagne
http://mathieuchamagne.com

http://www.maxobjects.com


July 15, 2010 | 10:19 pm

from the ref:

The RGB value of the clip’s color in the form 0x00rrggbb or (2^16 * red) + (2^8) * green + blue, where red, green and blue are values from 0 (dark) to 255 (light).

You can use a simple js script to unpack this:

function hex2rgb(hex){

var r = (hex & 0xff0000) >> 16;

var g = (hex & 0x00ff00) >> 8;

var b = hex & 0x0000ff ;

outlet(0, r, g, b);
}

Or do it with Max objects:

– Pasted Max Patch, click to expand. –

July 16, 2010 | 3:16 pm

Thanks Ben for the tip ; but this js / patch works fine with Live < = 8.1.3, but not with 8.1.4. :


----------begin_max5_patcher----------
890.3ocyX00aaBCE84jeEVno8TFyWiMF1CUZ6uwT0DI3k5M9HJPZyV09uOvF
ZIogg4ivhpjSrqwbtGetGecdd4Bq0oGEYVnOg9JZwhmWtXgZnxAVT0egUbvw
MQAYpoYsIMNVjjasR++xEGyUimj9zJTVPr.sIRtCsIMJceQan.Iypm7t8hrh
mMHWll7s8hM45WriuMdExkW1hqZP2W8LIGhkIQhb0aGpWnf7MOHS11xh.dpk
gb15jdHudgvUi98zj7jBPqBgOuWFDUiUYnZrz0+3C.2pwzyj+VMcfXiKG8OK
WV1rZj7mLAEIeTf7rAamUn7GjYMIwmBdgEMkQ7gRRv4pvHtSHirKHQD0gDgf
w5fALWjrdqh+zK.1lwwN.Q8bThuqu5a.vghuAMVqKvjT8KmU1RU5LhSmDYS5
hZM.dIQ7TwC+FgRACsSjDhpCu9lm3pvuuJj7IcnJf9nJn90CpWg7esSneoVV
ur9mHX.alOC73SG67n33t8n2IgORXt1CjbbUe.X7TxN.zW1YXoSsIaB17SDt
7uKRJNcRJTGEoPmTICfmGR4DOFSbK7ILtGT5QPb0dDXafRYNPmtEZ9xAzhHh
2KeXtgg+P7KhEYYAaEuYmGXLpOg.cXwBb89b2Frj1icvWYR5pOLlpO5YZjJd
yiRoMVzmwALmY0SBoxKwQoBX7ojP3yjexg30hAdLCnqJCvzNLMH8IvIsF3xx
BqPVqCR1dCvA.yylUD1DUQKLbGa9syAnujFEdAhvwcDLAdJOc48HBq24F.Sq
N37lEpNfjiV4G1+jelTdYPJDe9UVfPuUDH2cGxqu5Ceco1X88XHkT0zJOf4S
dzVZiKi3gGFwTk2P8l97FxMddSUIoWu7F7MTdyqW11T8QE8Tk33N45Ch6++D
GvkCfa+ycpnCctyHpPsUtY7m4nliUjL47eYNU3TN9oDVV5g8apeI0WDG8ZHE
JxxkIp58aLoSmyCxvPQRyqiDKC2kV.4JLft+h6dlBoxa+1IjnyLlvFfoy.90
FSNFgI77hIpoXBlOL4ZJlHyFl7L.Rj9syQJt4TYYOfp5GJ6kNiDp7q.T4Zz4
n7Tou1Yr6zLCv5Yxgq8NMwDLQlWL4PLgmlY2LSb8Oyd4pu2Yhygy75vZxV2Y
ZtNgTUFnKsgyQYmY.pNjQ.U.6MqXcLzZQAnWFqEc9yx+BT3jwBG
-----------end_max5_patcher-----------

Mathieu


January 13, 2014 | 1:21 am

Thanks Ben/Mathieu. Just found this and using it in M4L 6.1.5 / Live 9.1…. working fine.
Nick


Viewing 6 posts - 1 through 6 (of 6 total)