#define RULES_N 5
const t_base_param BaseParam =
{
USE_WEIGHTS, /* UseWeights */
USE_NOTS, /* UseNots */
IN_VAR_N, /* InVarN */
IN_TERMS_N, /* InTermsN */
IN_VAR_O, /* InVarOff */
INPUTS_O, /* InputsOff */
OUT_VAR_N, /* OutVarN */
OUT_TERMS_N, /* OutTermsN */
OUT_VAR_O, /* OutVarOff */
OUTPUTS_O, /* OutputsOff */
RULES_N, /* RulesN */
WEIGHTS_O, /* WeightsOff */
RULES_O /* RulesOff */
};
const t_var_info InpVar[IN_VAR_N] =
{
{ 5, 0, 1 }, /* acc */
{ 4, 0, 1 }, /* rot */
{ 4, 0, 1 }, /* press */
{ 4, 0, 1 }, /* touch */
{ 4, 0, 1 }, /* iacc */
{ 4, 0, 1 }, /* irot */
{ 4, 0, 1 }, /* ipress */
{ 4, 0, 1 }, /* itouch */
{ 5, -1, 1 }, /* dacc */
{ 5, -1, 1 }, /* drot */
{ 5, -1, 1 }, /* dpress */
{ 5, -1, 1 } /* dtouch */
};
const t_term_info InVar1 [4] = {
{ 0, 13, 0, 26 }, /* zero */
{ 3, 31, 26, 51 }, /* small */
{ 26, 64, 51, 20 }, /* medium */
{ 51, 255, 20, 0 } /* large */
};
#if USE_WEIGHTS
const unsigned char Weights[RULES_N] = {
255,
255,
255,
255,
255
};
};
#else /* USE_WEIGHTS */
const unsigned char Rules[] = {
/* IF */
0x0A, /* iacc IS zero */
0x24, /* irot IS zero */
0x3E, /* ipress IS zero */
0x58, /* itouch IS zero */
0xFE, /* THEN */
0x75, /* dvol IS n_small */
0x79, /* mvol IS limit */
0x8A, /* mton IS limit */
0x86, /* dton IS n_small */
0xFE,
/* IF */
0x27, /* irot IS NOT small */
0xFE, /* THEN */
0x8D, /* hue IS yellow */
0xBC, /* dval IS small */
0x87, /* dton IS small */
0xFE,
/* IF */
0x3A, /* press IS medium */
0xFE, /* THEN */
0xA1, /* sat IS large */
0xFE,
/* IF */
0x3B, /* press IS NOT medium */
0xFE, /* THEN */
0xBC, /* dval IS small */
0xBE, /* mval IS toggle */
0xFE,
/* IF */
0x08, /* acc IS any */
0xFE, /* THEN */
0xBE, /* mval IS toggle */
0xAE, /* msat IS limit */
0x9E, /* mhue IS cycle */
0x8B, /* mton IS cycle */
0x78, /* mvol IS toggle */
0xFF /* End Of Rules */
};
#endif /* USE_WEIGHTS */