This example provides just about everything needed to send/receive MIDI notes via the MIDI USB interface with the Pro Micro. You can extend it for all sorts of MIDI Arduino projects.
Download this Arduino sketch to your computer:
MIDI_keys_ProMicro.ino
Click the download icon to the right of the file name)
open it with the Arduino IDE. (File > Open ...)
Sketch > Upload
DAW software: This kit will work with any DAW (Digital Audio Workstation) software, such as Ableton, Pro Tools, etc. that communicate with MIDI devices.
You can also use "Signal" a MIDI editor that runs in a browser:
https://signal.vercel.app/
The Arduino sketch you are running only sends/receives these 3 MIDI notes: C3, D3, D3
(You can change this, if you'd like)
Using your DAW:
Edit the preferences/options to select "Sparkfun Pro Micro" as a MIDI in and MIDI out device.
Press the buttons on the kit to send MIDI to the DAW installed on your PC.
Send some MIDI from your DAW to the Pro Micro.
Using the Signal "Online MIDI editor"
Click "Launch"
See the screengrab to the right ->
Settings > MIDI ...
Check these boxes:
Inputs: Sparkfun Pro Micro
Outputs: Sparkfun Pro Micro, Signal Factory Sound
Press the buttons on the kit send MIDI to the Online MIDI Editor.
You can click the round "Record" button at the bottom of the screen to record your notes.
Then, play them back, either to the Pro Micro, or the Signal Factory Sound. Or both...
Here's a MIDI file you can download and use if you'd like:
Mary Had a Little Lamb.mid
Note: Signal does not currently support MIDI events on multiple channels. So, you can only play one track from the Arduino buttons.
There are many online MIDI synths that run in the Chrome browser using the Web MIDI API.
For example, https://midi.city/ supports MIDI on channel 1 and channel 10. You can change the Arduino code to use MIDI channel 10 for one of the buttons and play midi.city from the Arduino buttons.