led cell text

Author:
License: GPL
Github: rbrt/testing/led cell text.axo

Inlets

charptr32 text

bool32.risingfalling mute

Outlets

None

Attributes

objref LED

spinner row

spinner column

Declaration
char pre[8];
bool mtrig;
bool doit;
int8_t fb;
int16_t nb;
Init
#define BARS_ONE_L 0x03
#define BARS_ONE_R 0x04
#define BARS_TWO 0x05
#define BARS_NONE 0x06
Control Rate
if (!inlet_mute) {
  int i;
  for (i = 0; i < 8; i++)
    if (inlet_text[i] != pre[i]) {
      pre[i] = inlet_text[i];
      doit = 1;
    }
  if (!inlet_mute && !mtrig) {
    mtrig = 1;
    doit = 1;
  }
  if (doit && !attr_LED.ROW) {
    memcpy(&attr_LED.array[(attr_row * 68) + attr_LED.CELLOFFSET[attr_column]],
           inlet_text, 8);
    doit = 0;
    attr_LED.ROW = attr_row + 1;
  }
}
if (inlet_mute)
  mtrig = 0;

Privacy

© 2024 Zrna Research