jtackaberry / reaticulate

An articulation management system for REAPER
Other
101 stars 47 forks source link

Add option to automatically set active item in MIDI editor when track is selected #195

Open jtackaberry opened 2 years ago

jtackaberry commented 2 years ago

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.