Skip to content

Add 'Track Character' and 'Spectral Balance' audio palettes - #19

Open
netmindz wants to merge 3 commits into
MoonModules:mainfrom
netmindz:add-palettes-3-4
Open

Add 'Track Character' and 'Spectral Balance' audio palettes#19
netmindz wants to merge 3 commits into
MoonModules:mainfrom
netmindz:add-palettes-3-4

Conversation

@netmindz

Copy link
Copy Markdown
Collaborator

Summary

  • Ports upstream WLED PR #5467 to this usermod.
  • Depends on Add audioreactive color palettes (Ratio, Hue, Spectrum) #17 (base audio-palettes feature: Ratio/Hue/Spectrum) being merged first. Adds two new audio-reactive palettes (MAX_PALETTES 3 → 5): "Track Character" (spectral-centroid based hue) and "Spectral Balance" (bass/mid/high energy-ratio based hue).
  • Introduces paletteBandAvg[], a slowly-smoothed (~390ms time constant EMA, cadence-independent) per-band average used only by the two new palettes so their colors reflect overall tonal character rather than reacting to individual beats.
  • Resets paletteBandAvg alongside existing FFT data resets in onUpdateBegin() (both ESP32 and 8266 paths).

Test plan

  • Visual/behavioral verification requires building for ESP32 and observing the new palettes in the LED effects UI; not run in this environment.

Port the getCRGBForBand palette generation logic from the upstream
WLED usermods/audioreactive fork, adding an opt-in 'add-palettes'
setting that registers three audio-reactive color palettes with the
core palette system and refreshes them each loop.
Ports upstream WLED PR #5467: adds two new audio-reactive palettes derived
from a slowly-smoothed (~390ms EMA) per-band average, using spectral
centroid and bass/mid/high energy ratio to drive hue/saturation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant