loadbang

Generates a single pulse when a patcher is loaded. similar to PD / Max/Msp 'loadbang'
Author: robert schirmer
License: BSD
Github: rbrt/patching/loadbang.axo

Inlets

None

Outlets

bool32.pulse pulse

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

Privacy

© 2024 Zrna Research