midipipe(1) is a Linux program that accepts MIDI events in a plain text format on stdin, and sends them to a MIDI device or client using the ALSA sequencer API, and vice versa. It keeps a persistent client, so while you can send a single message like in this example, you can also continuously stream messages in or out, which is where midipipe shines. Use it in your shell scripts, or really ...