OK, try out this updated render file: https://github.com/giuliomoro/rnbo.example.bela/blob/dev/render.cpp .
You should first run with
bool showHiddenParameters = true;
so that you can see the parameter names and indexes. In the case of the file you uploaded you will get:
Available parameters: 10
[0] toggle_01_value
[1] toggle_02_value
[2] toggle_03_value
[3] toggle_04_value
[4] toggle_05_value
[5] toggle_06_value
[6] toggle_07_value
[7] toggle_08_value
[8] toggle_09_value
[9] toggle_10_value
then you should fill in this vector:
// mapping parameters to digital out, e.g.: to display a toggle state with an LED
static std::vector<unsigned int> parametersToDigital = {};
each element in the vector is the parameter associated to the digital out corresponding to that element's index. So for instance, to have parameter 10 output its value to digitalOut 0, and parameter 8 output itsvalue to digitalOut 1, you would do:
static std::vector<unsigned int> parametersToDigital = {
10, // out 0
8, // out 1
};
and you can skip channels adding a kNoParam
entry.
From the Pepper docs linked above,
LED output pins are as follows from left to right:
C++ (digitalWrite{Once}()): 6, 7, 10, 2, 3, 0, 1, 4, 5, 8
So, to map parameters 0 to 9 (toggle_01_value
to toggle_10_value
) of your example to the digital out pins corresponding to the Pepper LEDs, you should do:
static std::vector<unsigned int> parametersToDigital = {
5, // out 0
6, // out 1
3, // out 2
4, // out 3
7, // out 4
8, // out 5
0, // out 6
1, // out 7
9, // out 8
kNoParam, // out 9
2, // out 10
// below are optional, here just for completeness
kNoParam, // out 11
kNoParam, // out 12
kNoParam, // out 13
kNoParam, // out 14
kNoParam, // out 15
};
see if that works.