ImplantServer PadObject

Provides access to MIDI controls that display a series of lit or unlit buttons, such as the Novation LaunchPad. The primary purpose of implants is to control this interface. The pads are presented as an x/y grid, but every implant has its active upper-left corner represented as the coordinate (0,0) i.e. the grid is represented as its virtual location which may not be its physical location on the hardware. Also, the hardware representation can be much larger than the physical device (limited only by computer resources) and the window actually displayed on the hardware can be scrolled arbitrarily.

Properties

 * width - the horizontal size of the grid available to the implant
 * height - the vertical size of the grid available to the implant

Methods
TODO: add get
 * void on(event, fn) - registers a call back to receive the events described on this page.
 * void set(x,y,color) - changes the color of the pad at the given x/y coordinate. Currently these are the names of the colors listed on this page.

Events

 * press - called whenever a pad is pressed down with the x/y location
 * release - called whenever a pad is released with the x/y location
 * doublepress called the second time the pad is pressed within 250msec.