src/HumTransposer.cpp
int HumTransposer::circleOfFifthsToIntervalClass(int fifths) {
	if (fifths == 0) {
		return 0;
	}
	else if (fifths > 0) {
		return (perfectFifthClass() * fifths) % m_base;
	}
	else {
		return (perfectFourthClass() * (-fifths)) % m_base;
	}
}
//////////////////////////////
//
// HumTransposer::circleOfFifthsToIntervalClass -- Inputs a circle-of-fifths value and
//   returns the interval class as an integer in the current base.
//
:circleOfFifthsToIntervalClass -- Inputs a circle-of-fifths value and
returns the interval class as an integer in the current base.
: circleOfFifthsToIntervalClass -- Inputs a circle - of - fifths value and returns the interval class as an integer in the current base .
int HumTransposer::circleOfFifthsToIntervalClass(int fifths) {
	if (fifths == 0) {
		return 0;
	}
	else if (fifths > 0) {
		return (perfectFifthClass() * fifths) % m_base;
	}
	else {
		return (perfectFourthClass() * (-fifths)) % m_base;
	}
}
int HumTransposer :: circleOfFifthsToIntervalClass ( int fifths ) { if ( fifths == 0 ) { return 0 ; } else if ( fifths > 0 ) { return ( perfectFifthClass ( ) * fifths ) % m_base ; } else { return ( perfectFourthClass ( ) * ( - fifths ) ) % m_base ; } }
HumTransposer::circleOfFifthsToIntervalClass -- Inputs a circle-of-fifths value and
returns the interval class as an integer in the current base.
HumTransposer :: circleOfFifthsToIntervalClass -- Inputs a circle - of - fifths value and returns the interval class as an integer in the current base .