Seeed Studio XIAO RP2040 as MIDI Controller

Hi, I’m trying to use the Seeed Studio XIAO RP2040 as a simple MIDI controller over USB. I cannot seem to find a working library. Does anyone know what library to use or is there a vary basic working example?
I tried the Arduino MIDI Library and the MIDI Control Surface library for Arduino but keep getting errors about the connection to the USB port.

Thanks, Edwin