RocksmithToolkitLib.Sng2014HSL.Sng2014File.ConvertSong C# (CSharp) Method

ConvertSong() public static method

public static ConvertSong ( string xmlFile ) : Sng2014File
xmlFile string
return Sng2014File
        public static Sng2014File ConvertSong(string xmlFile)
        {
            var song = Song2014.LoadFromFile(xmlFile);
            var parser = new Sng2014FileWriter();
            var sng = new Sng2014File();
            parser.ReadSong(song, sng);
            sng.NoteCount = parser.NoteCount;
            sng.DNACount = parser.DNACount;
            return sng;
        }

Usage Example

Example #1
0
 public static Sng2014File ConvertXML(string xmlPath, ArrangementType type, string cdata = null)
 {
     if (type == ArrangementType.Vocal)
     {
         return(Sng2014FileWriter.ReadVocals(xmlPath, cdata));
     }
     return(Sng2014File.ConvertSong(xmlPath));
 }
All Usage Examples Of RocksmithToolkitLib.Sng2014HSL.Sng2014File::ConvertSong