Repository navigation
Description
Summary
examples/AnimartrixRing/AnimartrixRing.ino is audio-reactive today, but only in the narrow sense that bass changes FxEngine speed.
That is visible, but it is not compelling on a ring.
The current interaction is effectively:
audio -> vibe.bass -> time warp
instead of:
audio -> classify sound environment -> choose visual behavior -> apply beat/energy/spectrum mapping
Relevant code:
examples/AnimartrixRing/AnimartrixRing.ino:139-159examples/AnimartrixRing/AnimartrixRing.ino:197-199src/fl/fx/fx_engine.cpp.hpp:96-145src/fl/audio/audio_processor.h:69-178
Problem
Time warp is a good accent, but it is weak as the entire audio model.
Current shortcomings:
- the same visual just runs faster or slower
- silence has no intentional visual state
- chaotic noise can still look "reactive" without feeling musical
- beat confidence is not separated from general energy
- bass dominates while mids, treble, spectrum, and rhythm structure are ignored
On a ring, this reads as "motion intensity" rather than "musical understanding."
Expected behavior
The top-level orchestrator should classify the sound environment into three states:
silencedisorganized_soundbpm_locked_sound
And each state should use a different visual strategy.
flowchart LR
A[Audio Input] --> B{Silent?}
B -- yes --> S[Silence]
B -- no --> C{Tempo stable and beat confidence high?}
C -- no --> D[Disorganized Sound]
C -- yes --> R[BPM Locked Sound]
S --> S1[Calm ambient visuals]
D --> D1[Energy and spectrum visuals]
R --> R1[Beat-synced ring visuals]
Audio expectations
On beat
- clear kick or validated beat should produce visible pulse events
- downbeats should feel larger than ordinary beats
- beat-locked visuals should not activate without rhythm confidence
On energy
- loudness should affect density, contrast, and brightness
- rising energy should feel different from falling energy
- non-rhythmic sound should still produce interesting visuals without pretending to be on-beat
Why FastLED already supports this
The detector surface is already there:
Silencecan define the idle stateEnergyAnalyzercan drive density and contrastEqualizerDetectorcan drive spectrum-texture behaviorVibecan provide self-normalizing band accentsTempoAnalyzerandMusicalBeatcan decide when BPM lock is trustworthyPercussioncan separate kick, snare, and hat accents
References:
src/fl/audio/detector/silence.hsrc/fl/audio/detector/equalizer.hsrc/fl/audio/detector/vibe.hsrc/fl/audio/detector/musical_beat_detector.h
Proposed redesign
State 1: silence
Use ambient visuals:
SLOW_FADEWATERPARAMETRIC_WATERFLUFFY_BLOBS
Behavior:
- low speed
- restrained brightness
- no hard flashes
- slow palette drift
State 2: disorganized_sound
Use energy and spectrum visuals:
RGB_BLOBS5WAVESPOLAR_WAVESCOMPLEX_KALEIDO
Behavior:
- bass changes size or radial pressure
- mids steer hue or rotation
- treble adds sparkle or edge activity
- equalizer bins shape sectors or texture
- time warp is allowed, but secondary
State 3: bpm_locked_sound
Use beat geometry:
RINGSCHASING_SPIRALSSPIRALUSCENTER_FIELD
Behavior:
- kick or validated beat emits ring pulses
- downbeat changes palette or phase
- snare adds contrasting flash
- hi-hat adds fine shimmer
- BPM sets pulse cadence, not just raw engine speed
Concrete ask
Please redesign AnimartrixRing so that:
- it classifies audio into
silence,disorganized_sound, andbpm_locked_sound - each class selects different Animartrix visual families
- beat, energy, and spectrum map to different visual dimensions
- time warp remains available, but stops being the primary behavior
- transitions use hysteresis and minimum dwell times so the state machine does not chatter
Example mapping bank
| Signal | State | Visual result |
|---|---|---|
isSilent() |
silence |
breathing ambient drift |
energy |
disorganized_sound |
density and contrast increase |
eq.bass |
disorganized_sound |
stronger radial expansion |
eq.mid |
disorganized_sound |
hue travel and rotation bias |
eq.treble |
disorganized_sound |
sparkle or edge glitter |
vibe.bassSpike |
bpm_locked_sound |
pulse ring emission |
kick |
bpm_locked_sound |
thick bright impact |
snare |
bpm_locked_sound |
secondary color hit |
downbeat |
bpm_locked_sound |
palette reset or major phase change |
measurePhase |
bpm_locked_sound |
smooth motion between beats |
Acceptance criteria
- silence looks intentional, not dead
- random noise does not fake beat sync
- stable BPM visibly locks the ring into a pulse grammar
- mids and treble matter, not just bass
- different songs produce different visual behavior, not just different speed
Context
Related: #2193 is the broader audio reactive enhancement thread.
This issue is narrower: AnimartrixRing specifically needs a stronger top-level orchestration model because "bass -> time warp" is not compelling enough as the core interaction.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(examples/animartrix): 3-state audio orchestrator with hysteresis (…
refactor(examples): split MoodRing out of AnimartrixRing