Can someone help me out with slowing down the speed of ColorWavesWithPalettes?

Can someone help me out with slowing down the speed of ColorWavesWithPalettes? I’ve played around with rows 77-89 but I’m not clear on how to adjust the wave speed. I’ve been playing with the delay time (line 71) and this is the only thing I’ve seen a change with. When I slow it down a whole lot, I see a change, but it’s a bit more choppy than I’d like. Any thoughts? My understanding is limited but I will try to continue to test things. Thanks!
https://gist.github.com/kriegsman/8281905786e8b2632aeb

Which speed do you actually want to change? There are so many parameters related to “speed” in this example :wink:

Check the numbers in line 29 and line 64. This will mainly change the timing for the pallettes.
For the waves you have to check the first value in the beatsin88 functions. This is basically the “frequency” (BPM). That means time. Which means in this case “speed” :wink:

Please also have a look in the documention. This will make it very clear.
http://fastled.io/docs/3.1/group__lib8tion.html#gaf917825ff26c8e1174c5b674a2f3c631

The http://fastLED.delay(xx) will basically just change the FPS and is not related to the animation.

Yes, always avoid adding extra delay() when possible.

In addition to adjusting values for beatsin88, you could also add a multiplier of less then one to line 109. Change this:
uint16_t b16 = sin16( brightnesstheta16 ) + 32768;

to something like this:
uint16_t b16 = sin16( .2 * brightnesstheta16 ) + 32768;
or
uint16_t b16 = sin16( .02 * brightnesstheta16 ) + 32768;