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);
     }
 }
Beispiel #2
0
 public override void Tex(string contents)
 {
     try
     {
         var parser = new AlphaTexImporter();
         var data = ByteBuffer.FromBuffer(Std.StringToByteArray(contents));
         parser.Init(data);
         ScoreLoaded(parser.ReadScore());
     }
     catch (Exception e)
     {
         console.error(e);
     }
 }
 private Score ParseTex(string tex)
 {
     var import = new AlphaTexImporter();
     import.Init(new StreamWrapper(new MemoryStream(Encoding.UTF8.GetBytes(tex))));
     return import.ReadScore();
 }
Beispiel #4
0
 public override void Tex(string contents)
 {
     var parser = new AlphaTexImporter();
     var data = ByteBuffer.FromBuffer(Std.StringToByteArray(contents));
     parser.Init(data);
     ScoreLoaded(parser.ReadScore());
 }