Controlling WS2811 with Max/MSP

Hi.

I need help please!! Trying to control WS2811 rgb led's with Max/MSP. I have what I believe should be a working max patch that is sending the led address, and values for RGB through serial. But from what I have read, the WS2811 does not use numerical values, the github examples for the FastLED library use words to describe colours. I need help to adapt my incoming information into the right format please!

Attached are the two arduino codes I have, I need to merge the two into one working system! I only need 3 set colours.

Thank you in advance.

I really hope what I have written makes sense!!

WS2811_test01.ino (600 Bytes)

WS2811_test02.ino (2.17 KB)

But from what I have read, the WS2811 does not use numerical values,

Yes it does.

the github examples for the FastLED library use words to describe colours.

No it doesn't, it uses variables that have names, and those names also coincide with the names of the colours, but at the end of the day they are simply a collection of three 8 bit values, defining the amount of red, green and blue light.
See this reference Controlling leds · FastLED/FastLED Wiki · GitHub

As to merging two codes into one see http://www.thebox.myzen.co.uk/Tutorial/Merging_Code.html