pd patch / xbox360 guitar hero > midi


This puredata patch is quite basic. Simply print a list of available hid devices to the console with the "print" object, select the correct device number, then map parameters within your destination application like ableton or audiomulch. Use a virtual midi device app like loopbe or midi-yoke to re-route the midi.
Currently the connectors for the two tilt axis are disconnected as they interfere with being able to easily map the other controls when connected; they constantly send data with the smallest vibration, but it is easy to re-connect and use them.
The analog controls and buttons/switches output 0-127 on the labeled cc numbers. Select and start can be used to toggle across a series of values. This patch also works with a standard xbox360 controller which will add additional buttons and analog axis.
Also attached is a small ableton 8 project which uses the buttons, whammy, and switch to apply fun effects on some loops.
I am working on linux/mac versions of these patches which will use the "hid" object rather than windows' "hidin" object. Possibly the hid/hidin can simply be renamed when opening this patch on linux or mac versions of pd; though when building xbox360 controller patches in ubuntu, I found the L/R triggers to be recognized as independent axis, while in windows they are recognized as a single axis, more like a rudder.
update: made a quick version for mac using the "hid" object.