src/HumPitch.cpp
std::string HumPitch::getScientificPitch(void) const {
	if (m_diatonicpc < 0) {
		return "R";
	}
	string output;
	output = m_diatonicPC2letterUC.at(m_diatonicpc);
	if (m_accid < 0) {
		for (int i=0; i<-m_accid; i++) {
			output += 'b';
		}
	} else if (m_accid > 0) {
		for (int i=0; i<m_accid; i++) {
			output += '#';
		}
	}
	output = to_string(m_oct);
	return output;
}
//////////////////////////////
//
// HumPitch::getScientificPitch -- Returns the **pitch representation of the pitch.
//    Examples: Eb4, F#3, C-2.
//    Format:    [A-G](b+|#+)?-?\d+
//
:getScientificPitch -- Returns the **pitch representation of the pitch.
: getScientificPitch -- Returns the ** pitch representation of the pitch .
std::string HumPitch::getScientificPitch(void) const {
	if (m_diatonicpc < 0) {
		return "R";
	}
	string output;
	output = m_diatonicPC2letterUC.at(m_diatonicpc);
	if (m_accid < 0) {
		for (int i=0; i<-m_accid; i++) {
			output += 'b';
		}
	} else if (m_accid > 0) {
		for (int i=0; i<m_accid; i++) {
			output += '#';
		}
	}
	output = to_string(m_oct);
	return output;
}
std :: string HumPitch :: getScientificPitch ( void ) const { if ( m_diatonicpc < 0 ) { return " " ; } string output ; output = m_diatonicPC2letterUC . at ( m_diatonicpc ) ; if ( m_accid < 0 ) { for ( int i = 0 ; i < - m_accid ; i ++ ) { output += ' ' ; } } else if ( m_accid > 0 ) { for ( int i = 0 ; i < m_accid ; i ++ ) { output += ' ' ; } } output = to_string ( m_oct ) ; return output ; }
HumPitch::getScientificPitch -- Returns the **pitch representation of the pitch.
HumPitch :: getScientificPitch -- Returns the ** pitch representation of the pitch .