Controlling Philips Hue using Midi

Ben Thompson's icon

Hi. I have currently got Philips Hue lights connected to Max using the very useful information I found in this thread.

I was now wanting to try and control the Hue lighting using midi. I am using a midi instrument as an input device and I want to control the brightness of the lights to create a kind of pulse effect when someone is playing a note on the midi device.

I am relatively new to using Max//MSP so any help or pointers in the right directions would be appreciated.