limit attr

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

Inlets

frac32 in

Outlets

frac32 out

Attributes

spinner hi

spinner lo

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

Privacy

© 2024 Zrna Research