ReCntMem2

parameter memory for the recount module
Author: Remco van der Most
License: BSD
Github: sss/patt/ReCntMem2.axo

Inlets

None

Outlets

frac32 value

bool32.pulse change

int32.positive output

Parameters

frac32.u.map select

frac32.u.map Change

Displays

bool32 1

bool32 2

bool32 3

bool32 4

bool32 5

bool32 6

bool32 7

bool32 8

Declaration
int ptrig;
int32_t pval;
Init
ptrig = 0;
pval = 0;
Control Rate
int r = (param_select / 8) >> 21;

outlet_select = r;
outlet_value = param_Change;

if ((pval != param_Change) & (!ptrig)) {
  outlet_change = 1;
  pval = param_Change;
  ptrig = 1;
} else {
  ptrig = 0;
  outlet_change = 0;
}

disp_1 = (r == 0) ? 1 : 0;
disp_2 = (r == 1) ? 1 : 0;
disp_3 = (r == 2) ? 1 : 0;
disp_4 = (r == 3) ? 1 : 0;
disp_5 = (r == 4) ? 1 : 0;
disp_6 = (r == 5) ? 1 : 0;
disp_7 = (r == 6) ? 1 : 0;
disp_8 = (r == 7) ? 1 : 0;

Privacy

© 2024 Zrna Research