divider

flip flop, "automatic"
Author: Simon Iten
License: BSD
Github: lokki/octaver/divider.axo

Inlets

frac32buffer a

Outlets

frac32buffer quant(a)

Declaration
int counter;
int sample;
Init
counter = 0;
Audio Rate
if (inlet_a > 0 && (counter < 2)) {
  sample = (1 << 26);
  counter = counter + 1;
}
if (inlet_a > 0 && counter == 2) {
  sample = -(1 << 26);
  counter = 0;
}
outlet_b = sample;

Privacy

© 2024 Zrna Research