tinit 8 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 8 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

Declaration
uint32_t ntrig;
Control Rate
if (inlet_trig && !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;
}

if (!inlet_trig)
  ntrig = 0;

Privacy

© 2024 Zrna Research