tset bool

set 16 elements of a table to 0 or max,starting from 'offset'
Author: Robert Schirmer
License: BSD
Github: rbrt/data/tset bool.axo

Inlets

int32 offset inside the table

Outlets

None

Parameters

bin16 p1

int32 offset insde the table

Attributes

objref table

Declaration
int i;
bool v;
Control Rate
{

  if (i == 16)
    i = 0;
  if (bool(param_p1 & (1 << i)))
    attr_table.array[(i + inlet_offset + param_offset)] =
        (__SSAT((1 << 27), 28) >> attr_table.GAIN);
  else
    attr_table.array[(i + inlet_offset + param_offset)] = 0;
  i += 1;
}

Privacy

© 2024 Zrna Research