This gig file contains the Autosustain scriptlet which sustains notes automatically until you release all keys and then start playing a new chord.
There is an on/off knob, and a knob to stop the pending notes.
Download: Autosustain_scriptlet.gig (62.9 KB)
Credits: @LeeHarvey
Discussion thread: LINK