write

write to table
Author: Johannes Taelman
License: BSD
Github: table/write.axo

IO Variants: 2


Variant: 1

Inlets

int32.positive index (integer, not fraction)

frac32 value

bool32.rising trigger

Outlets

None

Attributes

objref table

Declaration
int ntrig;
Init
int ntrig = 0;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  ntrig = 1;
  if (inlet_a < attr_table.LENGTH)
    attr_table.array[inlet_a] = __SSAT(inlet_v, 28) >> attr_table.GAIN;
}
if (!(inlet_trig > 0))
  ntrig = 0;

Variant: 2

Inlets

frac32.positive index in fraction of table size

frac32 value

bool32.rising trigger

Outlets

None

Attributes

objref table

Declaration
int ntrig;
Init
int ntrig = 0;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  ntrig = 1;
  attr_table.array[__USAT(inlet_a, 27) >> (27 - attr_table.LENGTHPOW)] =
      __SSAT(inlet_v, 28) >> attr_table.GAIN;
}
if (!(inlet_trig > 0))
  ntrig = 0;

Privacy

© 2024 Zrna Research