Hi I alredy finished my Ray gun. But I have a problem with the code. When I pull the switch on every LED works, but when I rotate the Potentiometer the Barrel LED s goes thru the Color range and doesn t show the animations or that what it should do like in the Videos. What can I do to fix This?

This is the latest version of the code and everything is working properly. I was having some audio issues with the original LED settings, so that's why I made the change.
I have attached a version of the code with the original 5 settings. Let me know if you have any problems with it.