jtackaberry / reaticulate

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

Multi-item insertion fails when selected track does not match active take's track #171

Closed jtackaberry closed 2 years ago

jtackaberry commented 2 years ago

Edge case from #167 not properly handled as described here.
The issue occurs when the selected track is not the active take's track, but yet the selected items are editable and have selected notes. Despite that, the articulation insertion occurs at the edit cursor, rather than based on selected notes.

The root cause is that the selected track insertion happen first, and because the active take isn't from the currently selected track, we revert to edit cursor location. Solution is to perform the multi-item insertion first, and then look at selected tracks.