// // Programmer: Craig Stuart Sapp // Creation Date: Sat Mar 12 10:51:09 PST 2016 // Last Modified: Sat Mar 12 10:51:12 PST 2016 // Filename: ...sig/examples/all/notie.cpp // Web Address: http://sig.sapp.org/examples/museinfo/humdrum/notie.cpp // Syntax: C++; museinfo // // Description: Analyzes **kern data with serial descriptions. // Reference: http://solomonsmusic.net/pcsets.htm // // Note: does not deal with chord notes yet. // #include "humdrum.h" #include // function declarations void checkOptions (Options& opts, int argc, char* argv[]); void example (void); void usage (const char* command); void processFile (HumdrumFile& infile); // global variables Options options; // database for command-line arguments int markQ = 0; // used with -m option /////////////////////////////////////////////////////////////////////////// int main(int argc, char* argv[]) { checkOptions(options, argc, argv); HumdrumStream streamer(options); HumdrumFile infile; while (streamer.read(infile)) { processFile(infile); } return 0; } /////////////////////////////////////////////////////////////////////////// ////////////////////////////// // // processFile -- // void processFile(HumdrumFile& infile) { int i, j; PerlRegularExpression pre; infile.analyzeRhythm(); RationalNumber rn; char newrhy[128]; for (i=0; i