clear

Author: Robert Schirmer
License: BSD
Github: rbrt/lpr/clear.axo

Inlets

bool32.rising clearSlot

bool32.rising clearAll

int32.positive slot

Outlets

None

Attributes

objref lpr

Declaration
bool strig;
uint8_t slot;
int i;
Control Rate
if (inlet_clearSlot && !strig) {
  strig = 1;
  for (i = 0; i < 4; i++)
    attr_lpr.array[(inlet_slot << 2) + i] = 0;
}

if (inlet_clearAll && !strig) {
  strig = 1;
  for (i = 0; i < attr_lpr.LENGTH; i++)
    attr_lpr.array[i] = 0;
}

if (!inlet_clearSlot && !inlet_clearAll)
  strig = 0;

Privacy

© 2024 Zrna Research