FastLED 3.10.6
Loading...
Searching...
No Matches
mood_ring::GrooveLayer Class Reference

Detailed Description

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.

Definition at line 69 of file layers.h.

#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
 

The documentation for this class was generated from the following files: