With a helpful tip from Stefan Petrick ,

With a helpful tip from @Stefan_Petrick , I modified this pattern from using floating-point math to using FastLED 3.1’s new beatsin8 function. It’s much simpler now. Thanks @Mark_Kriegsman for the excellent work!

Originally shared by Jason Coon

This pattern is 32 points, each moving up and down independently, with speeds steadily increasing from left to right. At different times, the pattern produces traveling waves, standing waves, beating, etc.

I’ve tried several times to convert from using sin() to using FastLED’s sin8(), but can never get it working, if anyone has any ideas/suggestions.

The code is here: https://github.com/pixelmatix/aurora/blob/master/PatternPendulumWave.h
http://www.youtube.com/watch?v=o7rNpv9lAho

Hey great work-- it takes a bit of a mental shift to switch to fixed point but the payoff is worth it. Nice conversion!

wow. I can’t look away!