src/OPL2.cpp
/**
 * Calculate register offet based on channel and operator.
 */
Calculate register offet based on channel and operator.
Calculate register offet based on channel and operator .
byte OPL2::getRegisterOffset(byte channel, byte operatorNum) {
	channel = max(ZERO, min(channel, CHANNEL_MAX));
	operatorNum = max(ZERO, min(operatorNum, ONE));
	return registerOffsets[operatorNum][channel];
}
byte OPL2 :: getRegisterOffset ( byte channel , byte operatorNum ) { channel = max ( ZERO , min ( channel , CHANNEL_MAX ) ) ; operatorNum = max ( ZERO , min ( operatorNum , ONE ) ) ; return registerOffsets [ operatorNum ] [ channel ] ; }
Calculate register offet based on channel and operator.
Calculate register offet based on channel and operator .