analog input to 74hc595 output binary values?

So I have an analog input that will be between 0 and 5v that I want to give me digital values between 0 and 1024. For each segment I want to output different data values to a shift register according to the input where each segment is 1024/n where n is the number of outputs and each segement is the range of values for which each output would be true.For now I only need 8 different outputs but I want it to be scale-able into something closer to 64 or 128 outputs. This is what I have so far… did I do it all wrong? When I upload to the arduino all of the outputs are true…

int latchPin = 2;
int clockPin = 1;
int dataPin = 3;
int analogPin = 3;
int voice = 0;

void setup() {
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
pinMode(analogPin, INPUT);
}
void loop() {
voice = analogRead(analogPin); // read the input pin
if (voice < 128) {
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, 1);
//take the latch pin high so the LEDs will light up:
digitalWrite(latchPin, HIGH);
}
else if ( 128 < voice < 256) {
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, 3);
//take the latch pin high so the LEDs will light up:
digitalWrite(latchPin, HIGH);
}
else if ( 256 < voice < 384) {
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, 7);
//take the latch pin high so the LEDs will light up:
digitalWrite(latchPin, HIGH);
}
else if ( 384 < voice < 512) {
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, 15);
//take the latch pin high so the LEDs will light up:
digitalWrite(latchPin, HIGH);
}
else if ( 512 < voice < 640) {
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, 31);
//take the latch pin high so the LEDs will light up:
digitalWrite(latchPin, HIGH);
}
else if ( 640 < voice < 768) {
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, 63);
//take the latch pin high so the LEDs will light up:
digitalWrite(latchPin, HIGH);
}
else if ( 768 < voice < 896) {
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, 127);
//take the latch pin high so the LEDs will light up:
digitalWrite(latchPin, HIGH);
}
else if ( 896 < voice < 1024) {
digitalWrite(latchPin, LOW);
// shift out the bits:
shiftOut(dataPin, clockPin, MSBFIRST, 255);
//take the latch pin high so the LEDs will light up:
digitalWrite(latchPin, HIGH);
}

**I am using the arduino uno btw

You do not do if statements like this:-
if ( 384 < voice < 512)

You have to have a compound statement:-
if ( voice > 384 && voice < 512)

Not checked the rest of it, like a compile I stopped at the first error.