I just found this program, Transition, yesterday so I don't know if anyone has mentioned it before.
It generates Midi based on the collision of bots moving in a grid. It's almost like a game in which you prepare your bots with various bits of logic and then let them create Midi.
It's can be very easy or you can go very deep with it. It's fun, it's free, so if you enjoy this kind of thing, check it out:
https://www.codefn42.com/transition/index.html
(BTW it's Windows only)