Skip to content

AnimartrixRing: replace time-warp-only audio response with a 3-state sound orchestrator #2713

Closed

Description

@zackees

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-159
  • examples/AnimartrixRing/AnimartrixRing.ino:197-199
  • src/fl/fx/fx_engine.cpp.hpp:96-145
  • src/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:

  1. silence
  2. disorganized_sound
  3. bpm_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]
Loading

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:

  • Silence can define the idle state
  • EnergyAnalyzer can drive density and contrast
  • EqualizerDetector can drive spectrum-texture behavior
  • Vibe can provide self-normalizing band accents
  • TempoAnalyzer and MusicalBeat can decide when BPM lock is trustworthy
  • Percussion can separate kick, snare, and hat accents

References:

  • src/fl/audio/detector/silence.h
  • src/fl/audio/detector/equalizer.h
  • src/fl/audio/detector/vibe.h
  • src/fl/audio/detector/musical_beat_detector.h

Proposed redesign

State 1: silence

Use ambient visuals:

  • SLOW_FADE
  • WATER
  • PARAMETRIC_WATER
  • FLUFFY_BLOBS

Behavior:

  • low speed
  • restrained brightness
  • no hard flashes
  • slow palette drift

State 2: disorganized_sound

Use energy and spectrum visuals:

  • RGB_BLOBS5
  • WAVES
  • POLAR_WAVES
  • COMPLEX_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:

  • RINGS
  • CHASING_SPIRALS
  • SPIRALUS
  • CENTER_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:

  1. it classifies audio into silence, disorganized_sound, and bpm_locked_sound
  2. each class selects different Animartrix visual families
  3. beat, energy, and spectrum map to different visual dimensions
  4. time warp remains available, but stops being the primary behavior
  5. 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.

Activity

  1. added
    status: triage
    type: feature
    area: examples
    on Jun 3, 2026
  2. added a commit that references this issue on Jun 5, 2026
    cf8d543
  3. moved this from Triage to Done in FastLED Trackeron Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: examplesstatus: triagetype: feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions