Looking for some pointers regarding possibly implementing USBMIDI on a bluepill (F103), and later one of the new blackpill's (F401) when I get round to it.
Background: I've made a little 8 note wavetable poly synth, with envelopes, LFO and an arp, which is a lot of fun! Buttt, I'm yet to add in any MIDI, and I figure while I'm doing it, USBMIDI might be pretty useful (if I can). Obviously there already a lot going on here, so adding MIDI might be the straw that breaks the camels back, hence looking to the blackpill's (along with wanting to add a few more features.

Back to the boards. I'm currently running a standard Bluepill, with the HID 2.2 Bootloader. Currently using VSCode with PlatformIO, and I'd assume I'm still using the STM Cores 1.9.0, but I know it updated loads of stuff the other day, so that might have changed (I'm not super clued up on how to figure it out on PlatformIO, I can just about use it to write/upload.

I've had a poke round, and I can't seem to see any concrete info on here or around google about doing this sort of thing, I'm guessing I might have to get my hands a little dirty if there's nothing around, but any help/pointers would be great!
Thanks,
Nick