If you are interested in these things check out the PJRC site.
They sell some pretty inexpensive controllers with built in USB.
They also have USB class compliant MIDI libraries if you're programming in the arduino
environment.
https://www.pjrc.com/teensy/index.html
https://www.pjrc.com/teensy/teensyduino.html