back

PlatformIO USBLibrary for STM32 - ported to Arduino
  implements Arduino PluggableUSB API, supporting:

alternatives see ESP32 MIDI

STM32MIDI USB

STMCube HAL does not implement a MIDI class, but solutions are well known: The first 2 projects have the midi usb class;
one for stm32f1xx and another for stm32f4xx.
It works in a stm32f411CE (Blackpill board)
with cont.trol configuring first the project as USB Audio class,
then later adding the MIDI class and initializing MIDI class Instead of AUDIO.

STM32 MIDI Device Class Middleware driver

STM32F4 synth with USB MIDI Host function

stm32f103c reading serial midi

USB MIDI keyboard using stm32f103c8t6 (bluepill)

multi-port USB MIDI interface for STM32F103C8

@SloBlo:  USB MIDI using usbd_composite_builder

USB_DEVICE/App/usbd_midi_if.c

replace STM32Cube HID with MIDI

Discussion of ending MIDI event packets to the host
Ensure that the MIDI driver status is IDLE before each transfer initiation by using:
USBD_MIDI_GetState(&hUsbDeviceFS) == MIDI_IDLE

STM32_UART_MIDI direct port of Arduino MIDI library for use with STM32 HAL drivers

NOT USB...

USB to Serial-MIDI Interface using STM32F103 (USB Custom-HID implementation in ST CubeIDE) - YouTube

On GitHub

STMicroelectronics YouTube:  STM32 USB training - Device library

adding STM32 USB MIDI support to Arduino libraries

GitHub USB MIDI interfaces

mi:muz:tuch STM32 MIDI Controller

maintained by blekenbleu