MIDI over USB with Leonardo

Has anyone developed a library to use the Leonardo for USB MIDI?

This is available on the Teensy but I can't figure out if it is possible to compile Teensy sketches and use Teenys libraries on Leonardo.

HIDUINO is intended to reprogram the serial-to-USB 16U2 or 8U2 on the Uno and suchlike boards. Perhaps it could be compiled for the main 32U4 of the Leonardo, too.

robotman777:
Has anyone developed a library to use the Leonardo for USB MIDI?

This is available on the Teensy but I can't figure out if it is possible to compile Teensy sketches and use Teenys libraries on Leonardo.

I second that. There is a Teensy MIDI Library available at MIDI Library, For Communication With Musical Instruments

Maybe you'll find this LUFA alternative at Memos From the Cube ยป LUFA and the Arduino Leonardo workable.
I'm trying to make a simple sensory input available via usb/midi in ableton with the Leonardo (direct recognition as USB/MIDI, etcetc), but no luck so far.

Anyone tips on where to look? Spent my last 5 hours googling, but no clear simple setup/tutorial found.

there is an example to programming a arduino leonardo with a Teensy library ?