how to connect a sensor to act as a potentiometer?

 I deed to connect distance measuring sensors with my keyboards potentiometers so they become midi volume controls

jeff-o7 years ago
Sharp IR sensors?  With analog outputs, I assume?  That depends very much on the keyboard.  If the potentiometers inside the keyboard are acting as voltage dividers and are simply feeding a reference voltage into a secondary voltage controlled amplifier, then it should be easy enough to hack the sensor directly onto that control line.

However, if the pots are controlling the analog signal itself, it will be much, much harder.  Sadly without a schematic for the keyboard I can't help beyond that.
WHICH sensors...