bigknobs

Axoloti Control (AxoC) - large knobs control
Author: Mark Harris
License: GPL
Github: tb/ctrl/axoc/bigknobs.axo

Inlets

None

Outlets

frac32 out1

frac32 out2

frac32 out3

Displays

frac32.u.dial d1

frac32.u.dial d2

frac32.u.dial d3

Declaration
static const unsigned int SIZE = 3;
static const int32_t F_FREQ = 1 << 23;
int32_t o[SIZE];
Init
int i;
for (i = 0; i < SIZE; i++) {
  o[i] = 0;
}
Control Rate
int i = 0;
for (int i = 0; i < 3; i++) {
  o[i] = ___SMMLA(((adcvalues[i + 2] << 15) - o[i]) << 1, F_FREQ, o[i]);
}

outlet_out1 = o[0];
outlet_out2 = o[1];
outlet_out3 = o[2];

disp_d1 = o[0];
disp_d2 = o[1];
disp_d3 = o[2];

Privacy

© 2024 Zrna Research