step set

set an element inside a table to 'value'.if parameter 'ifon' is high,the element will only be set to 'value' if it's > 0.
Author: Robert Schirmer
License: BSD
Github: rbrt/seq/step set.axo

Inlets

bool32.rising set the table's content at 'index' to 'value'

frac32 value to write

int32.positive offset in the table

int32.positive write index

Outlets

None

Parameters

bool32.tgl if enabled,the element at index n will only be changed if it's already > 0

Attributes

objref table

Declaration
int ntrig;
int op;
Control Rate
if (!(inlet_trig > 0))
  ntrig = 0;

if ((inlet_trig > 0) && !ntrig) {
  ntrig = 1;
  op = attr_table.array[inlet_index + inlet_offset];
  if (param_ifon && op)
    attr_table.array[inlet_index + inlet_offset] =
        __SSAT(inlet_value, 28) >> attr_table.GAIN;
  if (!param_ifon)
    attr_table.array[inlet_index + inlet_offset] =
        __SSAT(inlet_value, 28) >> attr_table.GAIN;
}
if (!(inlet_trig > 0))
  ntrig = 0;

Privacy

© 2024 Zrna Research