tinit 4 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 4 attr.axo

Inlets

int32.positive offset

bool32.rising trig

Outlets

None

Attributes

objref table

spinner a1

spinner a2

spinner a3

spinner a4

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;
}

if (!inlet_trig)
  ntrig = 0;

Privacy

© 2024 Zrna Research