Hello Everyone,1.)I'm getting incomplete MIDI signals i.e. on the scale of 0-127,I'm get readings from 7-125/126 only.
2.)Sometimes the Pots start flickering badly and the value I get are near 57-68.
3.)There is some sort signal colliding issue.Signal colliding means when I turn the controller no.36 (from middle towards right or left) ,controller no.37 is also affected by the half the ratio.Similarly,when I turn controller no.52 to right,the controller no.37 turns slightly towards left & when I turn the controller no.53 towards right,the controller no.37 turns slightly towards right.
Hello PieterP,Firstly I would like to thank you for helping me out. as I am new to Arduino I didn't understand what you are trying say.
const unsigned minrange = 60;const unsigned maxrange = 964;unsigned rawvalue = analogRead(pin);unsigned mappedvalue = constrain(rawvalue, minrange, maxrange); // make sure the input is in the correct rangemappedvalue = map(mappedvalue, minrange, maxrange, 0, 1023); // map the limited range [60, 964] to the full range [0, 1023]