This program implements an USB MIDI to DMX interface using the LUFA library. I am using it with the awesome Teensy hardware.
MIDI "Note On" and "Note Off" messages are received on channel 0. The pitch is mapped to the DMX channel number (0-127). For "Note On" messages, the velocity is multiplied by two to yield the value set on that channel. "Note Off" messages set the corresponding channel to zero (off).
Questions/comments? Send email: hans.huebner@gmail.com