AudacityProject *project = new AudacityProject(); TrackList *trackList = project->GetTracks(); for (auto track : *trackList) { // do something with each track }
AudacityProject *project = new AudacityProject(); TrackList *trackList = project->GetTracks(); Track *mainTrack = trackList->Get(0);In this example, we retrieve the first track in the project using the GetTracks function and the Get function of the TrackList class. We then store the first track in a variable for later use. Package/Library: Audacity