src/MuseRecord.cpp
int MuseRecord::getOctave(void) {
	string recordInfo = getNoteField();
	int index = 0;
	while ((index < (int)recordInfo.size()) && !std::isdigit(recordInfo[index])) {
		index++;
	}
	if (index >= (int)recordInfo.size()) {
		cerr << "Error: no octave specification in note field: " << recordInfo
			  << endl;
		return 0;
	}
	return recordInfo[index] - '0';
}
//////////////////////////////
//
// MuseRecord::getOctave -- returns the first numeric character
//	in the note field of a MuseData note record
//
:getOctave -- returns the first numeric character
in the note field of a MuseData note record
: getOctave -- returns the first numeric character in the note field of a MuseData note record
int MuseRecord::getOctave(void) {
	string recordInfo = getNoteField();
	int index = 0;
	while ((index < (int)recordInfo.size()) && !std::isdigit(recordInfo[index])) {
		index++;
	}
	if (index >= (int)recordInfo.size()) {
		cerr << "Error: no octave specification in note field: " << recordInfo
			  << endl;
		return 0;
	}
	return recordInfo[index] - '0';
}
int MuseRecord :: getOctave ( void ) { string recordInfo = getNoteField ( ) ; int index = 0 ; while ( ( index < ( int ) recordInfo . size ( ) ) && ! std :: isdigit ( recordInfo [ index ] ) ) { index ++ ; } if ( index >= ( int ) recordInfo . size ( ) ) { cerr << " " << recordInfo << endl ; return 0 ; } return recordInfo [ index ] - ' ' ; }
MuseRecord::getOctave -- returns the first numeric character
in the note field of a MuseData note record
MuseRecord :: getOctave -- returns the first numeric character in the note field of a MuseData note record