src/tool-chantize.cpp
bool Tool_chantize::hasDiamondNotes(HumdrumFile& infile) {
	for (int i=0; i<infile.getLineCount(); i++) {
		HumNum duration = infile[i].getDuration();
		if (duration < 1) {
			return true;
		}
	}
	return false;
}
//////////////////////////////
//
// Tool_chantize::hasDiamondNotes -- True if the duration of any line is less than a quarter note.
//
:hasDiamondNotes -- True if the duration of any line is less than a quarter note.
: hasDiamondNotes -- True if the duration of any line is less than a quarter note .
bool Tool_chantize::hasDiamondNotes(HumdrumFile& infile) {
	for (int i=0; i<infile.getLineCount(); i++) {
		HumNum duration = infile[i].getDuration();
		if (duration < 1) {
			return true;
		}
	}
	return false;
}
bool Tool_chantize :: hasDiamondNotes ( HumdrumFile & infile ) { for ( int i = 0 ; i < infile . getLineCount ( ) ; i ++ ) { HumNum duration = infile [ i ] . getDuration ( ) ; if ( duration < 1 ) { return true ; } } return false ; }
Tool_chantize::hasDiamondNotes -- True if the duration of any line is less than a quarter note.
Tool_chantize :: hasDiamondNotes -- True if the duration of any line is less than a quarter note .