// // Programmer: Craig Stuart Sapp // Creation Date: Sun Jul 29 19:52:43 PDT 2012 // Last Modified: Sun Jul 29 19:52:46 PDT 2012 // Filename: ...sig/examples/all/sworkinfo.cpp // Web Address: http://sig.sapp.org/examples/museinfo/score/sworkinfo.cpp // Syntax: C++; museinfo // // Description: Display staff information for a SCORE page file. // #include "ScorePageSet.h" #include "Options.h" #include #include // function declarations: void checkOptions (Options& opts, int argc, char* argv[]); void example (void); void usage (const char* command); void displayFullWork (ScorePageSet& work); // interface variables: Options options; int verboseQ = 0; // used with -v option int fullQ = 0; // used with -f option int debugQ = 0; // used with --debug option ////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { checkOptions(options, argc, argv); ScorePageSet work; for (int i=1; i<=options.getArgCount(); i++) { cout << "PROCESSING " << options.getArg(i) << endl; work.appendRead(options.getArg(i), verboseQ); } work.analyzeContent(); if (fullQ) { displayFullWork(work); } else { cout << "Duration of work: " << work.getDuration() << " quarter notes" << endl; int i; for (i=0; i