I am looking into the proper way to handle clipboard operations on notes selected from different
MidiClip’s in a
CollectionClip (on a
Notes can be pasted on the same subtracks or different subtracks, so some of them might be empty (no
I’m using the
SelectedMidiEvents class to hold MIDI notes from different
I’ve look into :
Clipboard::Clips. New clips are will be created. I could merge them after the paste operation. Not sure if it can handle pasting the content on different subtracks ? (Maybe that’s what
trackOffsetis used for).
Clipboard::MidiEvents, creating or fetching the
MidiClip’s manually, calling
Clipboard::pasteIntoClip(...)for each “source”
Or… write my own copy/paste code, taking care of the automations, etc., which would be quite complex.
Happy to hear your thoughts about this.
Thanks in advance!