[LV2] MIDI: NOTE OFF on or just before deactivate() or cleanup()

David Robillard d at drobilla.net
Sat Nov 23 02:56:06 PST 2019

On Sat, 2019-11-23 at 09:58 +0100, Sven Jaehnichen wrote:
> Hi,
> I observed, that my (and others) lv2 midi plugins do not stop 
> plugin-generated midi NOTE ON signals after closing the plugin. I 
> thought about it but I didn't find a way to do this. Feeding the 
> respective atom output port with LV2_MIDI_MSG_NOTE_OFF in
> deactivate() 
> would be too late and without effect (if allowed anyway?). And even 
> later in cleanup, it doesn't make any sense.
> Is there any way to send a MIDI NOTE OFF if the plugin is deactivated
> or 
> just before?

Not really, no.  There's no hook for the last run cycle before being

Might be interesting to think about whether there could or should be,
but right now this is the host's reponsibility.


More information about the Devel mailing list