led cell value NEW

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

Inlets

bool32.risingfalling mute

frac32.positive in

Outlets

None

Attributes

objref LED

spinner row

spinner column

combo mode

Declaration
int32_t v;
int32_t prev;
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) {
  v = inlet_in;
  if (!inlet_mute && !mtrig) {
    mtrig = 1;
    doit = 1;
  }
  if (v != prev)
    doit = 1;
  if (doit && !attr_LED.ROW) {
    if (v <= 0)
      v = 0;
    prev = v;
    doit = 0;
    attr_LED.disp_cell_value(attr_mode, attr_column, attr_row, inlet_in);
    attr_LED.ROW = attr_row + 1;
  }
}
if (inlet_mute)
  mtrig = 0;

Privacy

© 2024 Zrna Research