src/OPL2.cpp
/**
 * Apply amplitude modulation when set to true. Modulation depth is controlled globaly by the AM-depth flag in the 0xBD
 * register.
 */
Apply amplitude modulation when set to true. Modulation depth is controlled globaly by the AM-depth flag in the 0xBD
register.
Apply amplitude modulation when set to true . Modulation depth is controlled globaly by the AM - depth flag in the 0xBD register .
byte OPL2::setTremolo(byte channel, byte operatorNum, bool enable) {
	byte reg = 0x20 + getRegisterOffset(channel, operatorNum);
	if (enable) {
		return setRegister(reg, oplRegisters[reg] | 0x80);
	} else {
		return setRegister(reg, oplRegisters[reg] & 0x7F);
	}
}
byte OPL2 :: setTremolo ( byte channel , byte operatorNum , bool enable ) { byte reg = 0x20 + getRegisterOffset ( channel , operatorNum ) ; if ( enable ) { return setRegister ( reg , oplRegisters [ reg ] | 0x80 ) ; } else { return setRegister ( reg , oplRegisters [ reg ] & 0x7F ) ; } }
Apply amplitude modulation when set to true.
Apply amplitude modulation when set to true .