A-Star 32U4 Micro: MIDI over USB

Now this is my first posting, so apologies if I’m doing something wrong.

I’m looking to do MIDI over USB using the A-Star 32U4 Micro.

Currently I have a software implementation of USB in an ATMega8, and I’m interested in the possibility of replacing the ATMega8 with the A-Star 32U4 Micro on the next revision of this project. The USB would then conform to spec, and be faster.

I was hoping to find a ready-to-run example of someone doing MIDI over USB on this platform that I could then adapt to my own needs. Clearly, I have all the source for doing MIDI over USB on the ATMega8, and could port/adapt it, but it would be nice if someone has done something that would make my life easier!

Any ideas please?

Hello.

That sounds like a nice project. There is a well maintained, open-source USB stack called LUFA you might want to look into:

http://www.fourwalledcubicle.com/LUFA.php

The Arduino Leonardo also uses the ATmega32u4 and there are also some native USB MIDI implementations using the Arduino framework. There’s an Adafruit writeup about one here:

https://learn.adafruit.com/untztrument-trellis-midi-instrument/code

Those are probably good places to start.

-Nathan

Many thanks, that looks interesting.

I also found this link which suggests someone’s already done something similar, but I haven’t had a chance to study the detail yet.