This script will always pass through only the lowest or highest note currently held.
Useful for combining polyphonic and mono sound, when usual mono synths’ behavior of playing last note held is not very musical.
V. 0.5: Initial release
V. 0.6: Added various ways to limit when released note glides to next held note