Is there a way to use a MIDI controller as a sensor in the Game Engine? I'd like to use a MIDI enabled device, in this case a mixer with knobs and faders, as a controller for the game engine, to do a live projection and change some parameters in real time.

The only things I found on the web are dealing with reading midi files (like this) and not live interaction. Someone managed to get something going with a midi-to-keyboard mapper, but that defies the point of using a MIDI device, which sends a lot more informations than a keyboard does.

Is there a way to do this, short of coding it from scratch?
There is a script extension, Blender HID Mapper, that does the following:


  Create a HID Mapping script similar to the provided template and run it. Then you can control blender with your MIDI device like specified in your mapping.


Just install the most recent version of the script from this site, then write your mapping as you desire. The first link above also has a sample mapping script that you can work off of.