src/OPL2.cpp
/**
 * Set the frequenct of the given channel and if needed switch to a different block.
 */
Set the frequenct of the given channel and if needed switch to a different block.
Set the frequenct of the given channel and if needed switch to a different block .
byte OPL2::setFrequency(byte channel, float frequency) {
	unsigned char block = getFrequencyBlock(frequency);
	if (getBlock(channel) != block) {
		setBlock(channel, block);
	}
	short fNumber = getFrequencyFNumber(channel, frequency);
	return setFNumber(channel, fNumber);
}
byte OPL2 :: setFrequency ( byte channel , float frequency ) { unsigned char block = getFrequencyBlock ( frequency ) ; if ( getBlock ( channel ) != block ) { setBlock ( channel , block ) ; } short fNumber = getFrequencyFNumber ( channel , frequency ) ; return setFNumber ( channel , fNumber ) ; }
Set the frequenct of the given channel and if needed switch to a different block.
Set the frequenct of the given channel and if needed switch to a different block .