Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEDs turn to white when there is no sound output #55

Open
mpross512 opened this issue Jul 7, 2017 · 5 comments
Open

LEDs turn to white when there is no sound output #55

mpross512 opened this issue Jul 7, 2017 · 5 comments

Comments

@mpross512
Copy link

I am using the ES8266 connected to the LEDs, and have the python script set to run at startup so that all my computer sound is visualized, wether that be listening to music or playing a game or something. However, after there is no sound output for a few seconds, the led strip will start to glow blue and eventualy a white color. The visualizer shows the blue color "freaking out" per se. I am using Voicemeeter to collect the sound input, could this be causing it, or is it an issue with the visualization?

@mpross512
Copy link
Author

Also, as soon as I play a sound, the strip turns dark again until it eventually starts glowing blue and repeats the process.

@joeybab3
Copy link
Collaborator

joeybab3 commented Jul 7, 2017

I've found this happens when it isn't receiving any input, it'll slowly amplify the volume until it hits the threshold and stops but it usually freaks out like you were saying

@Teapot418
Copy link

I'm having the same problem. It works fine if I use a real audio device via mic input (as long as there is sound actively coming in), but if I try to use stereo mix I get all white.

@Teapot418
Copy link

It's been a long week so I didn't get a chance to dig into the code until now, but a quick hotfix (at least for me) was to just set "MIN_VOLUME_THRESHOLD" in the config file lower. I set it to 1e-4, but you may need to go lower. I also changed "vol = np.max(np.abs(y_data))" to "vol = np.max(y_data)" in visualization (~line 200), but I don't think it's necessary. The absolute might even be there for a reason. I just don't know what it is. Also, I've only tested this w/ mic in, so I'm not sure if it will work w/ other audio solutions. Probably worth a shot though.

@mcodo
Copy link

mcodo commented Apr 3, 2018

I see this thread is a bit old, but just wanted to give an input from my experience.
All tho I'm running on Fe-Pi input on a Raspberry Pi, I think this would be valuable for users with the same setup.
I have set "MIN_VOLUME_THRESHOLD" to 0.06
When I stop all audio from my computer, the detected input is around 0.02, so 0.06 is working very good when using Line-Out from the computer to Line-In on the Fe-Pi.

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

No branches or pull requests

4 participants