// // Programmer: Craig Stuart Sapp // Creation Date: Wed Nov 29 09:46:36 PST 2000 // Last Modified: Wed Nov 29 09:46:39 PST 2000 // Filename: ...sig/examples/all/meter.cpp // Web Address: http://sig.sapp.org/examples/museinfo/humdrum/meter.cpp // Syntax: C++; museinfo // // Description: Extract the metrical information from interpretation // records. // // #include "humdrum.h" #include #include #include // function declarations void checkOptions (Options& opts, int argc, char* argv[]); void example (void); void printAnalysis (HumdrumFile& infile, Array& top, Array& bottom); void usage (const char* command); // global variables Options options; // database for command-line arguments int debugQ = 0; // used with the --debug option int appendQ = 0; // used with the -a option int compoundQ = 1; // used with the -c option /////////////////////////////////////////////////////////////////////////// int main(int argc, char* argv[]) { HumdrumFile infile; Array metertop; Array meterbottom; // 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& metertop, Array& meterbottom) { int i; if (appendQ) { for (i=0; i