cli/scorext.cpp
void fillAnalysisInfo(HumdrumFile& infile) {
	Barnum.resize(infile.getLineCount());
	Meterdur.resize(infile.getLineCount());
	int bar = -1;
	HumNum meter = -1;
	for (int i=0; i<infile.getLineCount(); i++) {
		Barnum[i] = bar;
		Meterdur[i] = meter;
		if (infile[i].isBarline()) {
			int value = infile[i].getBarNumber();
			if (value >= 0) {
				bar = value;
			}
			Barnum[i] = bar;
		}
		if (!infile[i].isInterpretation()) {
			continue;
		}
		for (int j=0; i<infile[i].getFieldCount(); j++) {
			HTp tok = infile.token(i, j);
			if (!tok->isTimeSignature()) {
				continue;
			}
			HumNum value = Convert::timeSigToDurationInQuarter(tok);
			meter = value;
		}
		Meterdur[i] = meter;
	}
}
/////////////////////////////////
//
// fillAnalysisInfo -- Extract information about the measure numbera dn
//    time signatures for the file.  This information is stored in
//    vectors indexd by line in the Humdrum data for access when creating
//    fractional positions in scores and barline numbers for data.
//
- Extract information about the measure numbera dn
time signatures for the file.  This information is stored in
vectors indexd by line in the Humdrum data for access when creating
fractional positions in scores and barline numbers for data.
- Extract information about the measure numbera dn time signatures for the file . This information is stored in vectors indexd by line in the Humdrum data for access when creating fractional positions in scores and barline numbers for data .
void fillAnalysisInfo(HumdrumFile& infile) {
	Barnum.resize(infile.getLineCount());
	Meterdur.resize(infile.getLineCount());
	int bar = -1;
	HumNum meter = -1;
	for (int i=0; i<infile.getLineCount(); i++) {
		Barnum[i] = bar;
		Meterdur[i] = meter;
		if (infile[i].isBarline()) {
			int value = infile[i].getBarNumber();
			if (value >= 0) {
				bar = value;
			}
			Barnum[i] = bar;
		}
		if (!infile[i].isInterpretation()) {
			continue;
		}
		for (int j=0; i<infile[i].getFieldCount(); j++) {
			HTp tok = infile.token(i, j);
			if (!tok->isTimeSignature()) {
				continue;
			}
			HumNum value = Convert::timeSigToDurationInQuarter(tok);
			meter = value;
		}
		Meterdur[i] = meter;
	}
}
void fillAnalysisInfo ( HumdrumFile & infile ) { Barnum . resize ( infile . getLineCount ( ) ) ; Meterdur . resize ( infile . getLineCount ( ) ) ; int bar = -1 ; HumNum meter = -1 ; for ( int i = 0 ; i < infile . getLineCount ( ) ; i ++ ) { Barnum [ i ] = bar ; Meterdur [ i ] = meter ; if ( infile [ i ] . isBarline ( ) ) { int value = infile [ i ] . getBarNumber ( ) ; if ( value >= 0 ) { bar = value ; } Barnum [ i ] = bar ; } if ( ! infile [ i ] . isInterpretation ( ) ) { continue ; } for ( int j = 0 ; i < infile [ i ] . getFieldCount ( ) ; j ++ ) { HTp tok = infile . token ( i , j ) ; if ( ! tok -> isTimeSignature ( ) ) { continue ; } HumNum value = Convert :: timeSigToDurationInQuarter ( tok ) ; meter = value ; } Meterdur [ i ] = meter ; } }
fillAnalysisInfo -- Extract information about the measure numbera dn
time signatures for the file.
fillAnalysisInfo -- Extract information about the measure numbera dn time signatures for the file .