// // Programmer: Craig Stuart Sapp // Creation Date: Fri Dec 24 20:43:18 PST 2004 // Last Modified: Fri Dec 24 20:43:21 PST 2004 // Filename: ...sig/examples/all/beat.cpp // Web Address: http://sig.sapp.org/examples/museinfo/humdrum/conductor.cpp // Syntax: C++; museinfo // // Description: Generates conductor track for radio baton. // #include "humdrum.h" #include #include // function declarations void checkOptions (Options& opts, int argc, char* argv[]); void example (void); void usage (const char* command); void printOutput (HumdrumFile& file); // global variables Options options; // database for command-line arguments int appendQ = 0; // used with -a option int prependQ = 1; // used with -a option int absQ = 0; int sumQ = 0; int durQ = 0; int beatQ = 0; int zero = 0; /////////////////////////////////////////////////////////////////////////// int main(int argc, char* argv[]) { HumdrumFile infile, outfile; // 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