Track containers
What is a track container?
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 containerPattern store(
PatternStore): The container for tracks in patternsPreview 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 becauseTrack::createwill 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 PatternStore via Engine. You can't access PreviewTrackContainer directly because it's intended to be used only by PresetPreviewPlayHandle.
Last updated
Was this helpful?