The monome 40h is a USB device (open source) that speaks OSC (Open Sound Control) MaxMSP is 'talking' to the 40h, turning on lights and receiving button pushes and generating the MIDI data that you hear.