It's not that hard. I did a real-time version of the Beatroot algorithm decades ago that worked pretty well for being such a simple algorithm.
Audio Reactive LED Strips Are Diabolically Hard
61–70 of 76 posts
Re: Audio Reactive LED Strips Are Diabolically Hard
#62Re: Audio Reactive LED Strips Are Diabolically Hard
#63I don't think FFTs are particularly good for music visualization if you're trying to be expressive because there isn't a particularly meaningful mapping from an FFT to the subjective experience of music and it adds significant latency. I ended up using a few stacked bandpass filters as well as mixing the raw PCM into the light strip for texture. Compressor with a slow attack and even slower release for auto-leveling (the release has to be like 20 seconds to make sure you don't up the gain a bunch during a breakdown in the music). I ran all the realtime stuff on one core of an ESP32 and a bluetooth stack and all the UI stuff on the other. I was getting about 200FPS on a strip of about 120 SK9822s w/ a custom HDR driver giving me about 11.5 bits of color per channel.
I really miss my bike, watch your shit on caltrain.
Re: Audio Reactive LED Strips Are Diabolically Hard
#64Re: Audio Reactive LED Strips Are Diabolically Hard
#65There's so many massively better solutions than FFTs when it comes to the way people perceive sound.
Re: Audio Reactive LED Strips Are Diabolically Hard
#66Earlier quoted context omitted.
isn't it the exact same problem than "making a good movie" or "making a good book" ? this is just thoroughly subjective. When the author says: > Every commercial audio reactive LED strip I've seen does this badly. They use simple volume detection or naive FFTs and call it a day. They don't model human perception on either side, which is why they all look the same. well no, if they sell, then they are doing just fine…
Fidget spinners also sell.
Re: Audio Reactive LED Strips Are Diabolically Hard
#67I like this writeup but I feel like the title doesn't really tell you what it's about ... to me it's about creativity within constraints. The author finds, as many do, that naive or first-approximation approaches fail within certain constraints and that more complex methods are necessary to achieve simplicity. He finds, as I have, that perceptual and spectral domains are a better space to work in for things that are…
Yeah, "diabolical" overstates it. It isn't a wicked problem https://en.wikipedia.org/wiki/Wicked_problem Kinda funny but I am a fan of green LED light to supplement natural light on hot summer days. I can feel the radiant heat from LED lights on my bare skin and since the human eye is most sensitive to green light I feel the most comfortable with my LED strip set to (0,255,0)
Re: Audio Reactive LED Strips Are Diabolically Hard
#68We used it for a bunch of parties, but the one I'm most proud of was an outdoor rave with ~20 people for which I got to organize everything. I had to program the raspberry pi to start your code at startup because it wasn't going to be connected to a laptop. I hooked the raspberry pi and LED to a generator and everything went crazy when the lights went on.
It was an amazing party
Re: Audio Reactive LED Strips Are Diabolically Hard
#69Re: Audio Reactive LED Strips Are Diabolically Hard
#70IANAE but I would go for electric circuit, not electronic software that steers the led. I think that nowadays, with the LLM support it can be easier and better to optimise it for the sake of latency.
If you want minimum latency, you want the input side of an traditional vocoder, not an FFT. This is the part that splits the modulator signal into frequency bands and puts each one through an envelope follower. Instead of using the outputs of the envelope followers to modulate the equivalent frequency bands of a carrier signal, you can use them to drive the visualizer circuit. That can be done with analog electronics…