In the previous post I have described the problem which I encountered , a flex sensor not entirely covering the whole MIDI scale from 0-127 and having an initial point somewhere in the middle of the scale. My idea is that the flex sensor will be carefully positioned on the fingers of the gloves as well as in the bent points of the suit (under the knee, in the crook of an arm, potentially on the other bending parts of the body). I want the flex sensor to control the entire MIDI scale from 0-127 and make it mappable to any parameter in the Ableton in cooperation with Arduino Max For Live device.
In the video above, you can see that the initial point of the flex sensor is somewhere around 40% (approx. number 43 on the MIDI scale) in of the Dry/Wet parameter and reaches somewhere around 80% (approx. number 86 on the MIDI scale). I will set the same input values into the calibrator to demonstrate its function in the video below. This time I mapped the output to the decay of the reverb.
As you can see, once the parameter sent by the sensor reaches the threshold set on the MIDI input (number 42), it triggers the output mapped to the reverb’s decay. It controls its full scale until it reaches the top possible value of the sensor (number 86).
This calibration device has the potential to calibrate any other sensors sending any unstable values and stabilising them into desired MIDI parameters. It can be, for example, used vice versa as well when the input MIDI information sends the full scale of 0-127 and the output has a particular threshold and limit.
The core of the device is a zMap object, which maps the input range of values to the output range, and map button patch. Schematics for the patch in Max is below.


The calibration device will eventually be extended to accommodate multiple parameters (for example, controlling five different flex sensors attached to the fingers of the hand) with map buttons added to its inputs.