t2p

Generates a single pulse after a rising edge on trigger input
Author: whatever
License: who cares
Github: rbrt/control/t2p.axo

Inlets

bool32.risingfalling trig

Outlets

bool32.pulse pulse

Declaration
int32_t val;
int ntrig;
Init
val = 0;
ntrig = 0;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  ntrig = 1;
  outlet_pulse = 1;
} else {
  if (!(inlet_trig > 0))
    ntrig = 0;
  outlet_pulse = 0;
}

Privacy

© 2024 Zrna Research