We released our plug-in which sends MIDI notes by audio peaks under GNU/GPLv3.

It has one audio input port and one MIDI output port. It works like trigger-sampler, but more unix-way (without sampler). You just send output MIDI note to sampler that you love. You can save dynamic of your audio signal, just use velocity controls.

About "Note-off mode" control you can read here: https://github.com/metachronica/audio-dsp-midi-trigger/blob/6992e837f8cdce165f394dee82b6e4eee039aa71/src/types.h#L52-L60
We'll document it in the future more user-friendly.

https://github.com/metachronica/audio-dsp-midi-trigger

First release here: https://github.com/metachronica/audio-dsp-midi-trigger/releases/tag/v0.0.1