// // Programmer: Craig Stuart Sapp // Creation Date: Tue Nov 14 16:32:36 PST 2000 // Last Modified: Tue Nov 14 16:32:39 PST 2000 // Last Modified: Sun Apr 14 21:25:48 PDT 2013 Enabled multiple segment input // Filename: ...sig/examples/all/ditto.cpp // Web Address: http://sig.sapp.org/examples/museinfo/humdrum/ditto.cpp // Syntax: C++; museinfo // // Description: Fills in the meaning of null tokens. // #include "humdrum.h" // function declarations void checkOptions (Options& opts, int argc, char* argv[]); void example (void); void printOutput (HumdrumFile& infile); void usage (const char* command); // global variables Options options; // database for command-line arguments int parensQ = 0; // used with the -p option int kernQ = 0; // used with -k option /////////////////////////////////////////////////////////////////////////// int main(int argc, char* argv[]) { HumdrumFileSet infiles; // process the command-line options checkOptions(options, argc, argv); // figure out the number of input files to process int numinputs = options.getArgCount(); int i; if (numinputs < 1) { infiles.read(cin); } else { for (i=0; i