I'm not sure how many of you play music, but in Windows there are several virtual MIDI loopback software to route MIDI from one program to another. For example, loopMIDI and midiyoke, and LoopBe1. In Mac, I think it is known as IAC drivers.
Is there any virtual MIDI loopback solution for Ubuntu/Linux?
These are my available devices as shown by a Java applet,
Available MIDI Devices:
----------Input----------
[0] "Real Time Sequencer"
----------Output----------
[0] "Gervill"
[1] "Real Time Sequencer"
In Linux, applications can create the same kind of MIDI port as drivers, so a MIDI loopback driver is typically not necessary.
If you want to use one anyway, you can use the "Midi Through" port(s) created by the
snd-seq-dummy
driver, which is loaded automatically.I believe that the program which you are looking for is Jack, which cann be used to route midi data from one program to another.
Jack can be fairly complicated to setup, and a good tutorial can be found at https://libremusicproduction.com/articles/demystifying-jack-%E2%80%93-beginners-guide-getting-started-jack
The basics would be to install jack, which can be most easily accomplished by installing one of the jack management tools to start Jack, and to create routes.
sudo apt install qjackctl
will do this for you.