Inserting and Removing Space

It seems to work to use trackPtr->insertSpaceIntoTrack() for removing space as well as inserting space. Simply give negative values for the space to insert, and it removes the space.

But is this recommended? If not, what would be the recommended way to remove space?

You probably want deleteRegionOfTracks from tracktion_EditUtilities.cpp?


I created an AlertWindow and use the results to populate the function.

te::deleteRegionOfTracks(edit, timeRange.withLength(timeToRemove), (result == 1), te::CloseGap::yes, &selectionManager);

Works well.

Thank you!!