|
FastLED 3.10.6
|
Music with a beat.
K evenly spaced markers rotate continuously at tempo (one slot per beat) with a slewed phase correction on each beat, the ring swells into each beat and releases after it, and downbeats flash the whole ring.
#include <layers.h>
Collaboration diagram for mood_ring::GrooveLayer:Public Member Functions | |
| void | render (const RoomSense &s, const MoodPalette &pal, float dtSec, RingCanvas &c) |
Private Attributes | |
| float | mCorrection = 0.0f |
| remaining phase correction, turns | |
| Follower | mFlash |
| float | mRotation = 0.0f |
| turns, advanced continuously | |
| Follower | mSnare |
| Follower | mSwell |
Static Private Attributes | |
| static const int | kMarkers = 4 |