dial_reset

bipolar constant value dial. trigger at inlet 'reset' will set the output to 'default'
Author: robert schirmer
License: who cares
Github: rbrt/control/dial_reset.axo

Inlets

bool32.rising reset output to default

Outlets

frac32.bipolar output

Parameters

frac32.s.map value

frac32.s.map default

Declaration
int ntrig;
uint32_t prev;
Control Rate
if ((inlet_reset > 0) && !ntrig) {
  ntrig = 1;
  outlet_out = param_default;
  prev = param_value;
}
if (!(inlet_reset > 0))
  ntrig = 0;

if (param_value != prev)
  outlet_out = param_value;
else
  outlet_out = param_default;

Privacy

© 2024 Zrna Research