USB MIDI might be too tricky to pull off on the Pico I'm afraid. I'm not sure you can customise the USB descriptors enough, but even if you could, you can only have the output endpoint (there isn't support for a USB input endpoint).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
USB MIDI might be too tricky to pull off on the Pico I'm afraid. I'm not sure you can customise the USB descriptors enough, but even if you could, you can only have the output endpoint (there isn't support for a USB input endpoint).