atuline/WLED

FFT data for sound-reactive custom effects

protyposis opened this issue · 9 comments

I would like to be able to write sound-reactive custom effects based on frequency magnitudes. It would be great if the FFT data, e.g., fftResult, was made available to the custom effect scripting language.

That's already there, see GEQ for an example

What is "GEQ"? I checked the wiki, custom effects repo, and script interpreter source, but wasn't able to identify FFT data availability in custom effect scripts.

GEQ = graphical equalizer - one of the 2D effects in fx.cpp.
I think that @protyposis means to say that the same data (fftResult[]) cannot be used in the custom effect scripting language.

Exactly! I updated my earlier comments for clarity.

Ah okay, Custom Effects is my baby, I will put it on my list and as I like the idea it might come fast 😉

It's done, see here: https://discord.com/channels/700041398778331156/905206400349765642/1053293141286998080

🥳

protyposis, you are on discord to see it?

I'm not registered there but have seen the video - this is great, thank you! 🚀 Can't wait to use it :)

It's now in WLED SR 0.13.3.6 and WLED MM 0.14.0.11.

If you download the new wledv033.json and presets.json and fftBrightness.wled after you press the Custom Effects button in Segments you can reproduce the effect.

Please try it out and if you create a new fft based effect, please share so we can add that to the library

Included in latest v0.13.4-beta release