// // Programmer: Craig Stuart Sapp // Creation Date: Wed Apr 6 14:58:35 PDT 2005 // Last Modified: Wed Apr 6 14:58:44 PDT 2005 // Filename: ...sig/examples/all/metertype.cpp // Web Address: http://sig.sapp.org/examples/museinfo/humdrum/metertype.cpp // Syntax: C++; museinfo // // Description: Summarizes metric data in a **kern file // // Note: Not complete yet. // #include "humdrum.h" // function declarations void checkOptions (Options& opts, int argc, char* argv[]); void example (void); void usage (const char* command); // global variables Options options; // database for command-line arguments int debugQ = 0; // used with the --debug option int shortQ = 0; // used with the -D option int pitchesQ = 0; // used with the -p option /////////////////////////////////////////////////////////////////////////// int main(int argc, char* argv[]) { HumdrumFile infile; // process the command-line options checkOptions(options, argc, argv); int numinputs = options.getArgCount(); string filename = ""; int i; if (numinputs < 1) { // if no command-line arguments read data file from standard input infile.read(cin); } else if (options.getArgCount() == 1) { infile.read(options.getArg(1)); } else { for (i=0; i