toggle

toggle
Author: Johannes Taelman
License: BSD
Github: logic/toggle.axo

Inlets

bool32.rising trigger

Outlets

bool32 output

Declaration
int ntrig;
int op;
Init
ntrig = 0;
op = 0;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  op = !op;
  ntrig = 1;
}
if (!(inlet_trig > 0))
  ntrig = 0;
outlet_o = op;

Privacy

© 2024 Zrna Research