Real time audio transient to MIDI

Hi

I’m looking for a program/plugin (that works on macOS) that will output a MIDI event whenever some audio transient is detected.

It seems this should be fairly simple and I’ve even thought of quickly putting one together myself but I can’t find anything. I’m not even particularly bothered which MIDI note comes out.