limit attr i

clamps the input between 'high' and 'low'.
Author: robert schirmer
License: BSD
Github: rbrt/math/limit attr i.axo

Inlets

int32 in

Outlets

int32 out

Attributes

spinner hi

spinner lo

Control Rate
if ((inlet_in <= attr_hi) && (inlet_in >= attr_lo))
  outlet_out = inlet_in;
else {
  if (inlet_in < attr_lo)
    outlet_out = attr_lo;
  else
    outlet_out = attr_hi;
}

Privacy

© 2024 Zrna Research