This is my usb midi device class for stm32 MCUs together with a simple example of a typical usage.