use the trill-twod branch of rnbo.example.bela
There, open render.cpp and uncomment this line:
//#define BELA_RNBO_USE_TRILL // uncomment to use Trill
Then adjust these variables for the parameters you actually want to control with Trill and the Trill sensors you have connected.
// 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 = {};
static std::vector<Trill*> trills {
// add/edit more Trills here
new Trill(1, Trill::BAR),
};
The content of parametersFromTrillLocation
, parametersFromTrillHorizontalLocation
, parametersFromTrillSize
have the same meaning as parametersFromAnalog
and parametersFromDigital
as explained here.