Example #1
0
void printSpineAnalysis(HumdrumFile& infile) {
   int linecount = infile.getNumLines();
   int linecount2 = 0;
   int i;
   int j;
   for (i=0; i<linecount; i++) {
      if (infile[i].getType() != E_humrec_data) {
         cout << infile[i] << '\n';
      } else {
         linecount2 = infile.getSpineCount(i);
         for (j=0; j<linecount2; j++) {
            cout << infile[i].getSpineInfo(j);
            if (j < linecount2 - 1) {
               cout << '\t';
            }
         }
         cout << '\n';
      }
   }
}