Distance Sensor and MIDI Out

Will that Ping Ultrasonic Range Finder work as a variable resistor? How would I get it to act like a 10K pot?