The index of the element of the array that has a value in it is the index of the channel in use, for instance the following assigns parameters 3, 4, 5 to analog channels 0, 1, 2:
static std::vector<unsigned int> parametersFromAnalog = {
3, // first element: channel 0
4, // second element: channel 1
5 // third element: channel 2
};
If you want to skip a channel, you can use kNoParam
, so that if you want to assign paramers 3, 4, 5 to analog inputs 1, 2, 3 you'd do:
static std::vector<unsigned int> parametersFromAnalog = {
kNoParam, // first element: channel 0
3, // second element: channel 1
4, // third element: channel 2
5, // fourth element: channel 3
};
The same is true for digital channels. Now, I am not sure I understand your issue.
robinfoster Does that mean that the order of the objects in the Max window is how you control the assignment, and that digital comes first?
Not that I am aware of. Can you post here your parametersFromAnalog
and parametersFromDigital
lines and the printout you get in the console?