Persisting MIDIdefs over Cmd+period

Is there a way to make MIDIdefs survive a Cmd+period? For example,

MIDIdef.cc(\test1, {arg ...args; args.postln}, 1);
MIDIdef.all;

if you execute this code, it will print out the list of MIDIdefs including the one just created, but when you press Cmd+period, executing the second line shows that there are no MIDIdefs any longer.

See permanent.

They are not permanent by default, because it was a common question, how to clean up responders en masse when they hadn’t been saved into variables, but the option is there to make them permanent.

hjh

1 Like