tablestore

writes and outputs 4 values to a table.
Author: robert schirmer
License: who cares
Github: rbrt/testing/tablestore.axo

Inlets

frac32 v0

frac32 v1

frac32 v2

frac32 v3

int32 sets an offset for writing to the table

Outlets

frac32 v0

frac32 v1

frac32 v2

frac32 v3

Attributes

objref table

Declaration
int32_t v[4];
int32_t prev[4];
Control Rate
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;

Privacy

© 2024 Zrna Research