private void SetupProject(Project originalProject, int[] songIds) { // Work on a temporary copy. project = originalProject.DeepClone(); project.Filename = originalProject.Filename; if (kernel == FamiToneKernel.FamiTone2 && project.UsesFamiStudioTempo) { project.ConvertToFamiTrackerTempo(false); } // NULL = All songs. if (songIds != null) { for (int i = 0; i < project.Songs.Count; i++) { if (!songIds.Contains(project.Songs[i].Id)) { project.DeleteSong(project.Songs[i]); i--; } } } RemoveUnsupportedFeatures(); project.DeleteUnusedInstruments(); }