That is understandable. It’s a pitty, but the reasoning is clear so thanks for explaining it.
I guess I’ll have to work with
DEL A : EX.M.NO X; EX.M.N X 127
which happens to be exactly 31 characters! The caveat, as @attowatt pointed out, is that this can be an issue if the script is triggered faster than A.
A workaround could be using MIDI CC 123 All Notes Off, which:
mutes all sounding notes. Release time will still be maintained, and notes held by sustain will not turn off until sustain pedal is depressed.
I guess this will also need to be timed correctly, but at least it doesn’t require storing the pitches for a certain number of notes, and can be used in combination with MIDI CC 64 to hold other notes. NB: MIDI CC 123 is channel specific, in case you didn’t know.
Another solution I’m thinking of @attowatt is to use a pattern as a source for X which could essentially be re-addressed later by DEL A, or another script (???), to stop the notes.
Worth a shot I guess.