Its a simple problem - and I had it once before but forgot the solution. I am currently porting the Towers module by Unless into a 2HP version (no C++ skills though)
#define ROWS 2
#define FADERS 16
enum ParamIds
{
ENUMS(FADER_PARAMS, FADERS *ROWS),
ENUMS(POLARITY_PARAM, ROWS),
ENUMS(TRIM_PARAMS, ROWS),
ENUMS(SAMPLE_PARAMS, ROWS),
ENUMS(CHANNEL_PARAMS, ROWS),
NUM_PARAMS
};
etc. and while its fairly easy to adress the whole group of parameters using a for loop I need to address the single parameters in the final bit:
addParam(createParamCentered(Vec(spl, spo * 2), module, VoltageBank2::SAMPLE_PARAMS)); addParam(createParamCentered(Vec(spl, spo * 3), module, VoltageBank2::POLARITY_PARAM)); addOutput(createOutputCentered(Vec(spl, spo * 4), module, VoltageBank2::FADER_OUTPUTS));
- I just need to know how ID1 and ID2 of the parameters are called. Any of the usual variations give me compiler errors or crash Rack after unpacking.
edit: I highlighted the part. what goes there?
addOutput(createOutputCentered(Vec(spl, spo * 4), module, VoltageBank2::FADER_OUTPUTS));
and here?
addInput(createInputCentered(Vec(spl, sp2), module, VoltageBank2::FADER_INPUTS2));
Thanks!