Having Legato NOT to cross to next bars/measures

Hi,

Currently, the legato in MIDI works fine if we have notes after a note(s) we want to change to legato. Now, if there is no note afterwards, the legato will extend the note to the end of the event location that could be many bars.

I would be nice to have this fix or as preference let the user to choose between the two legato behaviors.

CS