gate_hold

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

Inlets

frac32 in

bool32.risingfalling gate

Outlets

frac32 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