frac32 v0
frac32 v1
frac32 v2
frac32 v3
int32 sets an offset for writing to the table
frac32 v0
frac32 v1
frac32 v2
frac32 v3
objref table
int32_t v[4];
int32_t prev[4];
v[0] = inlet_v0;
v[1] = inlet_v1;
v[2] = inlet_v2;
v[3] = inlet_v3;
{
int i;
for (i = 0; i < 4; i++)
if (v[i] != prev[i]) {
attr_table.array[i + inlet_offset] = __SSAT(v[i], 28) >> attr_table.GAIN;
prev[i] = v[i];
}
}
outlet_v0 = attr_table.array[0 + inlet_offset] << attr_table.GAIN;
outlet_v1 = attr_table.array[1 + inlet_offset] << attr_table.GAIN;
outlet_v2 = attr_table.array[2 + inlet_offset] << attr_table.GAIN;
outlet_v3 = attr_table.array[3 + inlet_offset] << attr_table.GAIN;