src/OPL2.cpp
/**
 * Apply vibrato when set to true. Vibrato depth is controlled globally by the VIB-depth flag in the 0xBD register.
 */
Apply vibrato when set to true. Vibrato depth is controlled globally by the VIB-depth flag in the 0xBD register.
Apply vibrato when set to true . Vibrato depth is controlled globally by the VIB - depth flag in the 0xBD register .
byte OPL2::setVibrato(byte channel, byte operatorNum, bool enable) {
	byte reg = 0x20 + getRegisterOffset(channel, operatorNum);
	if (enable) {
		return setRegister(reg, oplRegisters[reg] | 0x40);
	} else {
		return setRegister(reg, oplRegisters[reg] & 0xBF);
	}
}
byte OPL2 :: setVibrato ( byte channel , byte operatorNum , bool enable ) { byte reg = 0x20 + getRegisterOffset ( channel , operatorNum ) ; if ( enable ) { return setRegister ( reg , oplRegisters [ reg ] | 0x40 ) ; } else { return setRegister ( reg , oplRegisters [ reg ] & 0xBF ) ; } }
Apply vibrato when set to true.
Apply vibrato when set to true .