t2p inv

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

Inlets

bool32.risingfalling trig

Outlets

bool32.pulse pulse

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

if (inlet_trig)
  ntrig = 1;

Privacy

© 2024 Zrna Research