In the MIDIFunc documentation, it’s written :
MIDIFuncs are removed on Cmd-. by default. This can be overridden using either of the fix or permanent methods.
I could not find in the documentation or with a quick search on the Internet what the fix and permanent methods are.
Any clue ?
I find this in the documentation:
.permanent = bool
Get or set whether this responder func is persists when the user executes Cmd-. If false this will be disabled and removed from the global lists. The default is false.
A Boolean indicating if this object is permanent.
The getter returns a Boolean.
I think you could try:
~test = MIDIFunc( /* bla bla */);
Silly me ! Thanks to both of you !!