The button will do the following:
- take the pattern clips (the empty ones) and identify its referenced clips
- take those referenced clips and copy their contents to the identical track lane in the arranger clips in the same order as they are found in the pattern clips section
Clicking the button again overwrites everything in the target tracks at the transport start position up to the required length. Setting the start position beyond the last clip in the arranger section would allow copying the contents a second time into the arranger.
This may or may not work under certain circumstances, like having looping enabled in the pattern clips, or else we'd have to reimplement the logic for all those clip launcher clip settings (unless the API is not allowing us to).
The advantage of this approach may be a cleaner timing where there is the same latency that we have when using classical arrangement. Right now, the extension launches clips as soon as the listener callback reports pattern clip play.