Converting RGB values to Hexadecimal?

    May 25 2011 | 10:20 pm
    I am working on a patch to control a string of RGB LEDs via music input. Currently I have been able to use a filter bank to generate R G B values (either on a scale of 0 to 255 or 0 to 1.0) from a color look-up table. I am having trouble figuring out how to convert these values to hex format for output to the LEDs though. I have found several javascript examples, but haven't been able to get them to work within a Max patch, anybody know how to do this?