public Vocals(Sng2014File sngData) { Vocal = new Vocal[sngData.Vocals.Count]; for (var i = 0; i < sngData.Vocals.Count; i++) { var v = new Vocal(); v.Time = sngData.Vocals.Vocals[i].Time; v.Note = sngData.Vocals.Vocals[i].Note; v.Length = sngData.Vocals.Vocals[i].Length; v.Lyric = sngData.Vocals.Vocals[i].Lyric.ToNullTerminatedAscii(); Vocal[i] = v; } }
public Vocals(Sng2014File sngData, bool validateLyrics = false) { Vocal = new Vocal[sngData.Vocals.Count]; for (var i = 0; i < sngData.Vocals.Count; i++) { var v = new Vocal(); v.Time = sngData.Vocals.Vocals[i].Time; v.Note = sngData.Vocals.Vocals[i].Note; v.Length = sngData.Vocals.Vocals[i].Length; v.Lyric = sngData.Vocals.Vocals[i].Lyric.ToNullTerminatedUTF8(); if (validateLyrics) { v.Lyric = v.Lyric.GetValidLyric(); } Vocal[i] = v; } Count = Vocal.Length; }