Exemplo n.º 1
0
        public void LoadMusicScore(BinaryReader b)
        {
            IScoreImportProvider import = new ImportGuitarPro();

            score = import.LoadScore(b);
            SelectDefaultPart();
        }
Exemplo n.º 2
0
        public void LoadMusicScore(string filename)
        {
            if (filename.EndsWith(".xml"))
            {
                //music xml
                score = new ImportMusicXML().LoadMusicXML(filename);
            }
            if (filename.EndsWith(".gp4"))
            {
                //guitar pro
                IScoreImportProvider import = new ImportGuitarPro();
                score = import.LoadScore(filename);
            }

            SelectDefaultPart();
        }