Hi!
I am looking into the proper way to handle clipboard operations on notes selected from different MidiClip
’s in a CollectionClip
(on a FolderTrack
).
Notes can be pasted on the same subtracks or different subtracks, so some of them might be empty (no MidiClip
’s).
I’m using the SelectedMidiEvents
class to hold MIDI notes from different MidiClip
’s.
I’ve look into :
-
Clipboard
/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 whattrackOffset
is used for). -
Clipboard
/Clipboard::MidiEvents
, creating or fetching theMidiClip
’s manually, callingClipboard::pasteIntoClip(...)
for each “source”MidiClip
.
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!
E.