Fast Led Code errors

fill_rainbow (struct CHSV *targetArray, int numToFill, uint8_t initialhue, uint8_t deltahue=5);

This is the function's declaration, it can't be inside another function.. If you want to call this function, you have to do it like a few lines below :

fill_rainbow(leds, NUM_LEDS, (beatA+beatB)/2, 8);