public static void OPL3_EnvelopeKeyOff(ref opl3_slot slot, EnvelopeKeyType type) { slot.key &= (byte)~type; }
static void OPL3_EnvelopeKeyOn(ref opl3_slot slot, EnvelopeKeyType type) { slot.key |= (byte)type; }