Exemplo n.º 1
0
 @Test
 // Sanity check to make sure the header is parsed correctly
 public void sanityCheck1() {
   String input = "X:1\nT:Paddy O'Rafferty\nC:Trad.\nM:6/8\nQ:200\nK:D\naaaaaa|]";
   ABCLexer lexer = new ABCLexer(input);
   ABCParser parser = new ABCParser(lexer);
   ABCMusic music = parser.parse();
   music.DisplayInfo();
 }
Exemplo n.º 2
0
 @Test
 // Sanity check to make sure the header is parsed correctly
 public void sanityCheck2() {
   String input =
       "X:8628\nT:Prelude BWV 846 no. 1\nC:Johann Sebastian Bach\nM:4/4\nL:1/16\nQ:280\nV:1\nK:C\nV:1\nz2 Gc eGce z2 Gc eGce|]";
   ABCLexer lexer = new ABCLexer(input);
   ABCParser parser = new ABCParser(lexer);
   ABCMusic music = parser.parse();
   music.DisplayInfo();
 }