In lieu of warning the user when the selected track is different than the active item in the editor is from a different track, provide an option to auto-set the active item in the editor based on the last active item for that track.
Will require calling reaper.MIDIEditor_GetTake() in each loop, fetching the take's GUID via reaper.GetSetMediaItemTakeInfo_String(), storing the GUID in P_EXT track data, then, recalling it via reaper.GetMediaItemTakeByGUID(). If no guid, use take nearest edit cursor.
In lieu of warning the user when the selected track is different than the active item in the editor is from a different track, provide an option to auto-set the active item in the editor based on the last active item for that track.
Will require calling
reaper.MIDIEditor_GetTake()
in each loop, fetching the take's GUID viareaper.GetSetMediaItemTakeInfo_String()
, storing the GUID in P_EXT track data, then, recalling it viareaper.GetMediaItemTakeByGUID()
. If no guid, use take nearest edit cursor.