This is great. And miti is exactly what I was looking for. Started working on something similar in bash and perl on top of gbevin's sendmidi [1] a while ago, but this looks like it'll save me much effort. Thanks!
I found there's other few programming-friendly simple MIDI sequencers [1] but generally none of them were simple enough for me. I'm pretty happy with the simplicity and power behind miti and use it quite a bit for my own purposes. Feel free to ping me if you have issues with it or ideas to improve it!