int main(int argc, char* argv[]) { HumdrumFile infile; Array<double> timings; Array<double> tempo; // process the command-line options checkOptions(options, argc, argv); // figure out the number of input files to process int numinputs = options.getArgCount(); for (int i=0; i<numinputs || i==0; i++) { infile.clear(); // if no command-line arguments read data file from standard input if (numinputs < 1) { infile.read(cin); } else { infile.read(options.getArg(i+1)); } analyzeTiming(infile, timings, tempo); generateSwing(infile, timings, percentage); printAnalysis(infile, timings, tempo); } return 0; }
int main(int argc, char* argv[]) { HumdrumFile infile; Array<double> timings; Array<double> tempo; // process the command-line options checkOptions(options, argc, argv); // figure out the number of input files to process int numinputs = options.getArgCount(); double totaldur = 0.0; for (int i=0; i<numinputs || i==0; i++) { infile.clear(); // if no command-line arguments read data file from standard input if (numinputs < 1) { infile.read(cin); } else { infile.read(options.getArg(i+1)); } if (interpQ) { doLinearInterpolation(infile); } else { analyzeTiming(infile, timings, tempo); if (totalQ) { totaldur += timings[timings.getSize()-1]; if (numinputs > 1) { printtime(options.getArg(i+1), timings[timings.getSize()-1]); } } else { printAnalysis(infile, timings, tempo); } } } if (totalQ) { printtime("", totaldur); } return 0; }