// // Programmer: Craig Stuart Sapp // Creation Date: Sun May 13 12:48:03 PDT 2001 // Last Modified: Sun May 13 12:48:06 PDT 2001 // Filename: ...sig/examples/all/kern2notelist2.cpp // Web Address: http://sig.sapp.org/examples/museinfo/humdrum/kern2notelist2.cpp // Syntax: C++; museinfo // // Description: Generates a list of notes from the input along with their // absolute position in the music, their duration and // the metric level // #include "humdrum.h" #include #include #include // function declarations void checkOptions (Options& opts, int argc, char* argv[]); void example (void); void usage (const char* command); // user interface variables Options options; // database for command-line arguments int quietQ = 0; // display only data table or not int verboseQ = 1; // display only data table or not int compoundQ = 1; // used with the -c option /////////////////////////////////////////////////////////////////////////// int main(int argc, char* argv[]) { HumdrumFile infile; // process the command-line options checkOptions(options, argc, argv); // figure out the number of input files to process int numinputs = options.getArgCount(); Array absbeat; Array pitch; Array testset; Array duration; Array level; Array coef; int i, j; for (i=0; i