Efficient control of leds

Hi Mike
Thanks for the response, I think I get it:
assuming I have two patterns stored in the array pattern of type long int (how long is a long it?):

long int pattern[2] = 0;
pattern[0] = 0b0000000011111111000000001111111100000000111111110000000011111111;
pattern[1] = 0b0101010101010101010101010101010101010101010101010101010101010101;

int loop(){
macroToggle(0);
}
macroToggle(int group){ // toggles the bits stored in an array called pattern
// I have increased the for loop to size 64 as thats how many bits I have.
int mask = 1;
for(int i=0; i<64; i++){
    if ( (pattern[group] & mask) != 0 ) Toggle(i)
    mask = mask << 1;
  }
}

Does that then make sense in terms of what you were thinking?

I cant store that bigger pattern( I have 50 leds) in a long int so need to break it down somehow?