how do i map a potentiometer from 0 - 1023 to 0 - 127 problems

Re-posting your code wouldn't hurt either.

Just throwing that out there.......