flash

Author:
License: GPL
Github: rbrt/control/flash.axo

Inlets

bool32.risingfalling lets flash

Outlets

bool32 false or true

Attributes

combo speed

Declaration
uint16_t t;
bool flash;
Control Rate
if (inlet_flash && !flash) {
  flash = 1;
  t = 0;
}
if (!inlet_flash) {
  flash = 0;
  outlet_flash = 0;
}

if (flash) {
  t += (1 << attr_speed);
  outlet_flash = (t > (1 << 15));
}

Privacy

© 2024 Zrna Research