What I'd like to achive is to trigger, by MIDI, duplicating an existing clip to a new slot. I can indirectly achive that by arming the track, firing an empty clip slot, wait for the has_clip message and then use a new Task object to perform the copy operation.
This seems like a pretty convoluted way to do this, and it has the downside that the copying operation is defered until after the clip has started recording. Thus, notes that are right at the beginning of the clip are not played in the first iteration of looping the copied clip. It also requires passing a lot of state around when all I really want is create a clip.
Any help would be appreciated! Thanks!