gate_hold_i

while gate is true,in is passed to out. if gate is false,the last input of in will be held. integer version.
Author: robert schirmer
License: who cares
Github: rbrt/control/gate_hold_i.axo

Inlets

bool32.risingfalling gate

int32 in

Outlets

int32 out

Declaration
int32_t hold;
Init
hold = 0;
Control Rate
if (inlet_gate > 0) {
  hold = inlet_in;
  outlet_out = inlet_in;
} else {
  outlet_out = hold;
}

Privacy

© 2024 Zrna Research