Exemplo n.º 1
0
int doAnalysis(HumdrumFile& infile, int line) {
   int value = 0.0;

   if (nograceQ && (infile[line].getDuration() == 0.0)) {
      return -1;
   }
   if (uniqueQ || noteQ || twelveQ || fortyQ || sevenQ) {
      value = getNoteCount(infile, line); 
   } else {
      value = getVoiceCount(infile, line);
   }
   if (summaryQ) {
      Summary[value] += infile.getDuration(line);
   }
   return value;
}
Exemplo n.º 2
0
 std::vector<std::string> NSFSoundStream::getVoiceNames() const {
     return std::vector<std::string>(
         sampleEmus[0]->voice_names(), sampleEmus[0]->voice_names() + getVoiceCount());
 }