void Filter::writeMODE_VOL(const unsigned char mode_vol) { vol = mode_vol & 0xf; lp = (mode_vol & 0x10) != 0; bp = (mode_vol & 0x20) != 0; hp = (mode_vol & 0x40) != 0; voice3off = (mode_vol & 0x80) == 0; updatedMixing(); }
void Filter::writeRES_FILT(const unsigned char res_filt) { filt = res_filt; res = res_filt >> 4 & 0x0f; updatedResonance(); if (enabled) { filt1 = (filt & 1) != 0; filt2 = (filt & 2) != 0; filt3 = (filt & 4) != 0; filtE = (filt & 8) != 0; } updatedMixing(); }
void Filter::writeRES_FILT(unsigned char res_filt) { filt = res_filt; updateResonance((res_filt >> 4) & 0x0f); if (enabled) { filt1 = (filt & 0x01) != 0; filt2 = (filt & 0x02) != 0; filt3 = (filt & 0x04) != 0; filtE = (filt & 0x08) != 0; } updatedMixing(); }