I would like to write a script that allows MIDI data to be recorded, then sent back out in a loop similar to how a drum machine works. Think drum machine without the audio data. Only MIDI data. I'm not a programmer, I'm a musician, so any help getting started is appreciated. KMIDImon is close to the kind of program I want, but it's not set up to be a looper. I am able to successfully send and receive MIDI data to/from the RPi3 however, so I think that's a good start.
There are several applications that offer looping capability with the RPi. Most of them are geared toward looping audio rather than just MIDI data, but Giada does both. I am still working out the kinks with using Giada, but so far it seems to do what I want.