MIDI control change parameters range from 0 - 127 (128) and a standard analogue potentiometer will read this value range in one complete rotation. You would just take the 0 - 1023 from an analogue pin and divide the value by 8. If i were to use a 24PPR rotary encoder would it not result in more than one full turn of the encoder being required to read the full (128) range?