What are the fix or permanent methods of MidiFunc?

Hello !

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 ?

Thanks !

Geoffroy

http://doc.sccode.org/Classes/AbstractResponderFunc.html#-fix

http://doc.sccode.org/Classes/AbstractResponderFunc.html#-permanent

hjh

1 Like

Hello Geoffroy,
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.

Arguments:
bool
A Boolean indicating if this object is permanent.

Returns:
The getter returns a Boolean.

I think you could try:

~test = MIDIFunc( /* bla bla */);
~test.permanent(true);

1 Like

Silly me ! Thanks to both of you !!