tom-2015 / rpi-ws2812-server

Raspberry Pi WS2812 (web) server tool
172 stars 39 forks source link

Is there a way to make the LED's react to music input? #57

Open Loxitation opened 3 years ago

Loxitation commented 3 years ago

Hey, as the title says, is there, or will there be a way? 👯 :)

tom-2015 commented 3 years ago

At this moment it's not implemented in the program, main reason is I don't know how to convert audio into commands to change the led color/brightness :(.

Bigdeath commented 3 years ago

Is there a way to convert the Mic Signal into a wave Form? Then for high, mid and Bass Set colors and fade them random. I hope you understand what I mean. It where good to know how other products work with Sound 2 Light 🤔

Loxitation commented 3 years ago

@tom-2015 What if you don't have to convert the audio into commands? I mean the audio signal needs to be processed, thats right. But depending on the amplitude of the track, it can send or it will send "values" or a graph. Your part would be to grab parts of the path every x ms and read a value, lets say 1-10. 1 = low, nothing happens, maybe little voice part, where 10 would be the base kick while the song drops. Now to transfer that into a command you could use if(value=10){DoStuff}. Audio Input for the pi could come trough cheap usb soundcards, I'll google a bit in my spare time, maybe I can come up with some more help :/ Thats the only feature I'm missing, being able to run my "shows" sound activated 👯

tom-2015 commented 3 years ago

🤔you mean make the brightness change with amplitude of audio signal?

Edit, found this on youtube 😀: https://www.youtube.com/watch?v=xFt-ya-8GAw

Loxitation commented 3 years ago

$499.99, definetly not :D

Loxitation commented 3 years ago

Is this helpfull? https://stackoverflow.com/questions/36250228/read-frequency-from-mic-on-raspberry-pi

Loxitation commented 3 years ago

https://github.com/scottlawsonbc/audio-reactive-led-strip the dsp.py should be interesting. Its the digital signal processing.

tom-2015 commented 3 years ago

Yes that can be interesting but will take some time to implement.

Bigdeath commented 3 years ago

Any Updates? Possible?

tom-2015 commented 3 years ago

Didn't have time to start with audio support. Now finishing 2D matrix support first, after this I'll take a look at audio input.

tom-2015 commented 3 years ago

Release 6.1 has 3 new functions for audio effects. It's still a beginning and the DSP is probably far from perfect.