At the moment the only way to access notes and cc events is via their index in the item.
This is not good for a utility I'm writing in which the user repeatedly alters and/or moves specific notes and CC events in a given item. To do this I'm forced to construct a separate representation of the indexes in the item to keep track of the changes to them. Deleting all MIDI in the item and rewriting all of it again for every single change is prohibitively expensive and slow.
The way I understand it judging by this post:
https://forum.cockos.com/showpost.ph...15&postcount=3 reaper has internal data structures that represent individual midi notes and cc events. Would it be possible to expose these to the API? Even if it's persistent for only the duration of the current reaper process that would be extremely helpful.
SWS has a function called FNG_GetMidiNote however as I understand it this will not refer to the same note once the indices are changed.