// トラック private void ReadTrack(MmlFileReader m) { List <string> TrackName = new List <string>(); while (true) { var Name = m.ReadName(); TrackName.Add(Name); m.SkipIfSpace(); var ct = m.FetchType(); if (ct == MmlCharactorType.Separator) { m.SkipType(); continue; } break; } var TrackPos = m.GetPosition(); for (var i = 0; i < TrackName.Count; i++) { if (i > 0) { m.SetPosition(TrackPos); } var Name = TrackName[i]; VerboseWriteLine($"--- Track: {Name} ---"); ReadTrackText(Name, m); } }
// 空白スキップ&フェッチ private static MmlCharactorType SkipSpaceAndFetch(MmlFileReader m) { m.SkipIfSpace(); return(m.FetchType()); }