Tracktion / tracktion_engine

Tracktion Engine module
Other
1.19k stars 149 forks source link

how to copy track? #68

Closed imiskolee closed 2 years ago

imiskolee commented 2 years ago

hi:

already has clip cloneFrom method to copy & paste clip, but can not found track level copy&paste method. did it's existing ?

drowaudio commented 2 years ago

Copy and paste is more involved than simply duplicating the data as there are various itemIDs that need to be updated. You need to go via the Clipboard class to create a Clipboard::Tracks with the tracks ValueTree state objects and then paste that in to another position with pasteInToEdit.

Does that help?

imiskolee commented 2 years ago

it's work fine.