View Single Post
Old 03-20-2016, 08:04 PM   #24
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

edit. If linked here in single post please see entire thread:
https://forum.cockos.com/showthread.php?t=143366
to get a better understanding of difficulties encountered with overlapping notes when running ReaScripts.

--------------------------------------------------------------

This should do that. The max_join_space variable near the top sets it to whatever.

Feel a little dirty following spk77 in here. No one has helped me more learning scripting (both directly and indirectly), and I use more of his scripts than of anyone elses. But he is a busy guy, I guess.

I found that it mattered what order to put the new notes into the item (take) but am not sure I have it all good now. It might be possible to put error handling in to cover the overlapping note, or maybe just cut those which are affected by selected notes to be joined, but I don't think they can survive having a new note put on top of them. Could be wrong. It's good enough for me personally now I think.



EDIT:
Old script removed. Improved scripts:
Script: FnA_Join selected overlapping and consecutive (adjacent) notes.lua
Script: FnA_Join selected overlapping and consecutive notes with spacing below threshold (input box).lua
now in ReaPack.

Last edited by FnA; 01-11-2018 at 12:20 AM.
FnA is offline   Reply With Quote