filter i

filter out a defined value.if 'in',doesn't match the value , 'b' == 1.
Author: Robert Schirmer
License: BSD
Github: rbrt/control/filter i.axo

Inlets

int32 in

int32 value to filter

Outlets

bool32 true?

int32 out

Parameters

int32 value to filter

Declaration
int prev;
Control Rate
if (inlet_in != (param_filter + inlet_filter)) {
  outlet_out = inlet_in;
  prev = outlet_out;
  outlet_b = 1;
} else {
  outlet_out = prev;
  outlet_b = 0;
}

Privacy

© 2024 Zrna Research