Live data from Hacker News

Audio Reactive LED Strips Are Diabolically Hard

scottlawsonbc.com

61–70 of 76 posts

Re: Audio Reactive LED Strips Are Diabolically Hard

#61

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.

Can't go against he premise of the article. Everyone knows if it is in the hyperbolic title it is automatically true.

Re: Audio Reactive LED Strips Are Diabolically Hard

#63
I wish my bike hadn't gotten stolen, I had audioreactive LEDs on there and I'd take a video for y'all. Maybe it's time to resurrect the project.

I 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

#65
I'm a little surprised that colorchord didn't get a mention, since several folks use it for chromatic sound analysis to color conversion. ColorChord .NET (the desktop music visualizer) as well as AudioLink in VRChat both use the ColorChord core for the chromatic mapping. There was a really good interview with Macyler from CC.net on youtube a few years back.

There'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

#66

Earlier 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.

.. anything wrong with them?

Re: Audio Reactive LED Strips Are Diabolically Hard

#67

I 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)

I believe it's not a "problem." It's expression, like a painting. Every work of audio reactive LEDs is a reflection of the designer's intent, constraints, biases, imagination, and the context in which it was designed. Like painting, there are technical chops, the craft, like the first half of the article, the lag, the mapping of frequency and amplitude, etc. But once those are mastered the road becomes wide open. That's the "what makes someone tap their foot?" the article asks.

Re: Audio Reactive LED Strips Are Diabolically Hard

#68
I loved this project. I started a similar project when covid started thinking that it would be easy to implement and I would be able to use it for the after COVID parties. I was really wrong, by the time COVID finished my project was barely working (using FFT) and it really didn't look like an audio reactive LED. I remember cloning your repo and thinking wow.

We 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

#70
post #8
post #4

IANAE 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…

I got it to produce me an 6x lm3915 + 10x TL072CP + 18 1N4148 solution. Need to order the BOM and try it in free time
Post reply on HN