tablestore demux 8

writes and outputs values to a table at position 'i' + 'offset'.
Author: robert schirmer
License: who cares
Github: rbrt/data/tablestore demux 8.axo

Inlets

int32 i

int32 sets an offset for writing to the table

frac32 in

Outlets

frac32 v0

frac32 v1

frac32 v2

frac32 v3

frac32 v4

frac32 v5

frac32 v6

frac32 v7

Attributes

objref table

Declaration
uint32_t prev;
Init
prev = 0;
Control Rate
if ((inlet_i == 0) && (inlet_in != prev))
  attr_table.array[inlet_offset + 0] = __SSAT(inlet_in, 28) >> attr_table.GAIN;
if ((inlet_i == 1) && (inlet_in != prev))
  attr_table.array[inlet_offset + 1] = __SSAT(inlet_in, 28) >> attr_table.GAIN;
if ((inlet_i == 2) && (inlet_in != prev))
  attr_table.array[inlet_offset + 2] = __SSAT(inlet_in, 28) >> attr_table.GAIN;
if ((inlet_i == 3) && (inlet_in != prev))
  attr_table.array[inlet_offset + 3] = __SSAT(inlet_in, 28) >> attr_table.GAIN;
if ((inlet_i == 4) && (inlet_in != prev))
  attr_table.array[inlet_offset + 4] = __SSAT(inlet_in, 28) >> attr_table.GAIN;
if ((inlet_i == 5) && (inlet_in != prev))
  attr_table.array[inlet_offset + 5] = __SSAT(inlet_in, 28) >> attr_table.GAIN;
if ((inlet_i == 6) && (inlet_in != prev))
  attr_table.array[inlet_offset + 6] = __SSAT(inlet_in, 28) >> attr_table.GAIN;
if ((inlet_i == 7) && (inlet_in != prev))
  attr_table.array[inlet_offset + 7] = __SSAT(inlet_in, 28) >> attr_table.GAIN;

prev = inlet_in;

outlet_v0 = attr_table.array[__USAT((inlet_offset + 0), attr_table.LENGTHPOW)]
            << attr_table.GAIN;
outlet_v1 = attr_table.array[__USAT((inlet_offset + 1), attr_table.LENGTHPOW)]
            << attr_table.GAIN;
outlet_v2 = attr_table.array[__USAT((inlet_offset + 2), attr_table.LENGTHPOW)]
            << attr_table.GAIN;
outlet_v3 = attr_table.array[__USAT((inlet_offset + 3), attr_table.LENGTHPOW)]
            << attr_table.GAIN;
outlet_v4 = attr_table.array[__USAT((inlet_offset + 4), attr_table.LENGTHPOW)]
            << attr_table.GAIN;
outlet_v5 = attr_table.array[__USAT((inlet_offset + 5), attr_table.LENGTHPOW)]
            << attr_table.GAIN;
outlet_v6 = attr_table.array[__USAT((inlet_offset + 6), attr_table.LENGTHPOW)]
            << attr_table.GAIN;
outlet_v7 = attr_table.array[__USAT((inlet_offset + 7), attr_table.LENGTHPOW)]
            << attr_table.GAIN;

Privacy

© 2024 Zrna Research