AlphaTab.Importer.AlphaTexImporter.ReadScore C# (CSharp) Method

ReadScore() public method

public ReadScore ( ) : AlphaTab.Model.Score
return AlphaTab.Model.Score
        public override Score ReadScore()
        {
            try
            {
                CreateDefaultScore();
                _curChPos = 0;
                _currentDuration = Duration.Quarter;
                NextChar();
                NewSy();
                Score();

                _score.Finish();
                return _score;
            }
            catch
            {
                throw new UnsupportedFormatException();
            }
        }

Usage Example

Beispiel #1
0
 private void Tex(string contents)
 {
     try
     {
         var parser = new AlphaTexImporter();
         var data = ByteBuffer.FromBuffer(Std.StringToByteArray(contents));
         parser.Init(data);
         _trackIndexes = new[] { 0 };
         ScoreLoaded(parser.ReadScore());
     }
     catch (Exception e)
     {
         Error(e);
     }
 }
All Usage Examples Of AlphaTab.Importer.AlphaTexImporter::ReadScore