Leonardo direct MIDI USB

hi, I am also looking into using the leonardo to be a midi input for my ipad or a midi output using a custom drum kit.
So far no luck to get the usb midi code for the leonardo, any help would be appreciated.

Thanks