ATMEGA328P send MIDI via USB
The cleanest way to build a USB MIDI device would be to use a microcontroller that supports USB natively, and implement the USB MIDI protocol directly.

Otherwise, the easiest way to get USB MIDI support is to take apart some cheap USB MIDI interface and duct-tape it to your circuit.