i radio 4 set

positive integer control, horizontal radio buttons inlet 'reset' resets control to zero
Author: Robert Schirmer
License: BSD
Github: rbrt/control/i radio 4 set.axo

Inlets

int32.positive setTo

bool32.rising set

Outlets

int32.positive output

Parameters

int32.hradio value

Declaration
bool ntrig;
uint8_t out;
Control Rate
out = param_value;
if (inlet_set && (!ntrig)) {
  ntrig = 1;
  out = inlet_setTo % 4;
  PExParameterChange(&parent->PExch[PARAM_INDEX_attr_legal_name_value], out,
                     0xFFFD);
}

if (!inlet_set)
  ntrig = 0;

outlet_out = out;

Privacy

© 2024 Zrna Research