tinit 16 attr

sets the indexes of table to the value of the attributes starting at index 'offset'
Author: Robert Schirmer
License: BSD
Github: rbrt/data/tinit 16 attr.axo

Inlets

bool32.rising trig

int32.positive offset

Outlets

None

Attributes

objref table

spinner a1

spinner a2

spinner a3

spinner a4

spinner a5

spinner a6

spinner a7

spinner a8

spinner b1

spinner b2

spinner b3

spinner b4

spinner b5

spinner b6

spinner b7

spinner b8

Declaration
uint32_t ntrig;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  ntrig = 1;

  attr_table.array[inlet_offset] =
      __SSAT((attr_a1 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 1] =
      __SSAT((attr_a2 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 2] =
      __SSAT((attr_a3 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 3] =
      __SSAT((attr_a4 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 4] =
      __SSAT((attr_a5 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 5] =
      __SSAT((attr_a6 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 6] =
      __SSAT((attr_a7 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 7] =
      __SSAT((attr_a8 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 8] =
      __SSAT((attr_b1 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 9] =
      __SSAT((attr_b2 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 10] =
      __SSAT((attr_b3 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 11] =
      __SSAT((attr_b4 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 12] =
      __SSAT((attr_b5 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 13] =
      __SSAT((attr_b6 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 14] =
      __SSAT((attr_b7 << 21), 28) >> attr_table.GAIN;
  attr_table.array[inlet_offset + 15] =
      __SSAT((attr_b8 << 21), 28) >> attr_table.GAIN;
}

if (!(inlet_trig > 0))
  ntrig = 0;

Privacy

© 2024 Zrna Research