doublepulsar

multi pulse/square shaper
Author: Remco van der Most
License: BSD
Github: sss/osc/doublepulsar.axo

Inlets

frac32buffer input

frac32 b

frac32 c

frac32 d

frac32 e

frac32 f

frac32 g

Outlets

frac32buffer output

Audio Rate
int32_t ef;
int32_t a;
int32_t b;
int32_t c;
int32_t pulse1;
int32_t pulse2;
int32_t pulse3;
int32_t pulse4;
if (inlet_a > (inlet_b + (1 << 27)) >> 1) {
  pulse1 = inlet_a * (inlet_c >> 15);
} else {
  pulse1 = inlet_a * (inlet_d >> 15);
}
pulse2 = pulse1 > (1 << 26) ? (1 << 26) : 0;

if (inlet_a > (inlet_e + (1 << 27)) >> 1) {
  pulse3 = inlet_a * (inlet_f >> 15);
} else {
  pulse3 = inlet_a * (inlet_g >> 15);
}
pulse4 = pulse3 > (1 << 26) ? (1 << 26) : 0;

outlet_result = pulse2 + pulse4 - (1 << 26);

Privacy

© 2024 Zrna Research