until

rapid trigger pulses until rising edge on stop
Author: Johannes Taelman
License: BSD
Github: logic/until.axo

Inlets

bool32.rising start

bool32.rising stop

bool32.rising pause triggering when true

Outlets

int32.positive repetitive pulse

bool32.pulse repetitive pulse

Declaration
int pstart;
int pstop;
int po;
int state;
Init
pstart = 0;
pstop = 0;
po = 0;
state = 0;
Control Rate
if ((inlet_start > 0) && !pstart) {
  state = 1;
  pstart = 1;
}
if (pstart && !(inlet_start > 0))
  pstart = 0;
if ((inlet_stop > 0) && !pstop) {
  state = 0;
  pstop = 1;
}
if (pstop && !(inlet_stop > 0))
  pstop = 0;
outlet_o = (state & 1) << 27;
if (!(inlet_pause > 0))
  if (state > 0)
    state++;
outlet_count = (state >> 1);

Privacy

© 2024 Zrna Research