- Edited
First off as you are using more than one sensor of the same type, you need to change the address on at least one of each pair. This is done by bridging some of the solder pads, as explained here.
Then in terms of support in rnbo, use the trill-twod
branch. Note that there is no support for multiple touches per device at the moment. In the provided render.cpp, you need to uncomment this line:
//#define BELA_RNBO_USE_TRILL // uncomment to use Trill
then edit these lines
static std::vector<Trill*> trills {
// add/edit more Trills here
new Trill(1, Trill::BAR),
};
so that you add all the Trills you have with the correct address, e.g.: if you have one stock bar at 0x20 and one modified bar at 0x21, one stock hex at 0x40 and one modified hex at 0x41, you'd have:
static std::vector<Trill*> trills {
// add/edit more Trills here
new Trill(1, Trill::BAR, 0x20),
new Trill(1, Trill::BAR, 0x21),
new Trill(1, Trill::HEX, 0x40),
new Trill(1, Trill::HEX, 0x41),
};
Then we need to set what parameters we want to control. The lines
// same but for mapping Trill location to parameters.
static std::vector<unsigned int> parametersFromTrillLocation = {};
// same but for mapping Trill horizontal location to parameters.
static std::vector<unsigned int> parametersFromTrillHorizontalLocation = {};
// same but for mapping Trill size to parameters.
static std::vector<unsigned int> parametersFromTrillSize = {};
need to be modified for that purpose. The example below should make you control the parameters as follows:
- Bar 0x20 location -> parameter 0
- Bar 0x21 location -> parameter 1
- Hex 0x40 location-y -> parameter 2
- Hex 0x40 location-x -> parameter 3
- Hex 0x41 location-y -> parameter 4
- Hex 0x41 location-x -> parameter 5
// same but for mapping Trill location to parameters.
static std::vector<unsigned int> parametersFromTrillLocation = {0, 1, 2, 4};
// same but for mapping Trill horizontal location to parameters.
static std::vector<unsigned int> parametersFromTrillHorizontalLocation = {3, 5};
// same but for mapping Trill size to parameters.
static std::vector<unsigned int> parametersFromTrillSize = {};
Give that a try.