A track container(class TrackContainer) is a group of several tracks. There are three types of track containers:
Song container(part of Song): The root track container
Pattern store(PatternStore): The container for tracks in patterns
Preview track container(PreviewTrackContainer): The container for tracks used in previewing presets
Things you can do with it
TrackContainer::tracks(): Get the list of all tracks in the container.
TrackContainer::addTrack(Track *): Add a track to the track container. You don't need to call it in most cases because Track::create will add the created track to the given container.
TrackContainer::removeTrack(Track *): Remove a track from the track container.
Accessing to track containers
You can access to Song and PatternStorevia Engine. You can't access PreviewTrackContainer directly because it's intended to be used only by PresetPreviewPlayHandle.