Looking for a way of doing this:
I have a midi reference source track 1 layer showing chord notes, green chord root and yellow other chord notes.
I have another midi track 2 in the front layer showing brown notes that need to be moved to match any of the chord layer note numbers.
So basically it needs to get the note numbers from the chord track then adjust the note numbers on the other track/s to the nearest number match but in the 2nd chord there is an A# & G# but we don't want them both to moved to the A and overlap or get deleted.
If easier it can be done one Chord (region) at a time but if possible also one selection at a time, one track at a time or all selected tracks or time selection.
At the moment it's using the code from mpl_Snap selected notes to scale,
it converts the chord name to notes then notes to a Reascale that is used by the mpl code but it overlaps or removes notes.
I don't mind paying or giving a donation for any help.