speedlim attr

limits data rate.useful for debouncing.
Author: Robert Schirmer
License: BSD
Github: rbrt/control/speedlim attr.axo

Inlets

frac32 in

Outlets

frac32 out

Attributes

spinner time

Declaration
int32_t prev;
uint16_t count;
Control Rate
if ((inlet_in != prev) && !count) {
  count = attr_time;
  prev = inlet_in;
}

if (count)
  count--;

outlet_out = prev;

Privacy

© 2024 Zrna Research