That is not my complete code no. It's the part that manages the serial communication. I don't think the problem is code related since it's running perfectly fine on a Uno. (at least not stuff like missing libraries and such). But I thought I might be overlooking a difference in serial communication between Uno and Mega.
Touch designer is the software I'm using to map animations for the leds on a 13x1 grid (13 strips each one color). It sends RGB values of 13 channels to arduino via serial. http://www.derivative.ca/