MAJOR ReaScript bug fix in 5.25rc2!
There have been scary reports of ReaScripts - as well as SWS functions - causing extended notes and freezing REAPER, even though no overlapping notes are present.
We finally traced the problem to this bug:
ReaScript: MIDI_Sort extends non-overlapping notes that end in Note-Ons with vel=0.
The bug is now fixed in 5.25rc2. It also fixes some essential SWS functions such as
SWS/BR: Enable "Ignore project tempo" for selected MIDI items and preserve time position of events (use tempo at item's start).