rpass f

outputs the input when the input is in between 'high' and 'low' (>= AND <=). otherwise,the last input within range is held.
Author: robert schirmer
License: BSD
Github: rbrt/control/rpass f.axo

Inlets

frac32.bipolar in

Outlets

frac32.bipolar out

bool32 inside ??

Parameters

frac32.s.map high

frac32.s.map low

Declaration
int32_t prev;
Control Rate
if ((inlet_in >= param_low) && (inlet_in <= param_high)) {
  outlet_out = inlet_in;
  prev = inlet_in;
  outlet_b = 1;
} else {
  outlet_out = prev;
  outlet_b = 0;
}

Privacy

© 2024 Zrna Research