How to make networked lamp into midi ctrl lamp?

I’ve been working on the Arduino Networked Lamp, from the “Getting Started with Arduino” book.

I was hoping to modify the code, so that a midi cc can control the lamp R,G, & B.

Any suggestions?


It seems I could do this with the serial object in MAX/MSP, or with the Serial to MIDI Converter.