limit

Limits in incoming value to an upper and lower bound
Author: Johannes Elliesen
License: BSD
Github: TSG/math/limit.axo

Inlets

frac32.bipolar i

Outlets

frac32.bipolar o

Attributes

spinner max

spinner min

Control Rate
int32_t tmp = ((inlet_i) > (attr_max << 21)) ? (attr_max << 21) : inlet_i;
outlet_o = ((tmp) < (attr_min << 21)) ? (attr_min << 21) : tmp;

Privacy

© 2024 Zrna Research