audio-reactive-led-strip icon indicating copy to clipboard operation
audio-reactive-led-strip copied to clipboard

Visualization.py graphs when no audio?

Open NickSutton opened this issue 6 years ago • 5 comments

Hi, so i got the RPi to show the visualizations on screen. Pretty cool!!

One thing though, they seem to be dancing away by themselves... Even with no audio playing the lines are all the place!

To get it all working I just had to set the USB audio as the default device but I really need my IQAudio card as the default output and the USB as the default input - Is this achieveable? Or, is it going to be easier just to mount a USB mic in the speaker box rather than hardwiring the audio from a spare output to the mic in port?

Can’t wait to get this fully up and running!

Cheers, Nick

NickSutton avatar Aug 13 '19 19:08 NickSutton

The visualization tries to add a sort of gain to the audio when it's quiet to deal with microphones that don't pick up audio well, and in doing so it will continue to add gain until it either starts detecting something or hits the threshold.

What you are seeing is basically the background noise or interference that is being amped up until it reaches the threshold or shuts off.

joeybab3 avatar Aug 13 '19 19:08 joeybab3

As far as your other questions, I do not own a rpi so I can't assist but its possible someone may have figured that out in another issue?

joeybab3 avatar Aug 13 '19 19:08 joeybab3

Thanks man, I have looked and the question has been posed on the RPi forums but no one answered. I need to dig in to the asound file and see what’s what. Thanks for the quick reply

NickSutton avatar Aug 13 '19 20:08 NickSutton

Hi, I currently have MIN_VOLUME_THRESHOLD = 1e-7 For the threshold value, can you offer any advice on how I stop the LEDs triggering on ‘background noise’?

I’m driving the LED’s directly from the speakers (cabled in to the mic-in port on a USB sound card) so technically there shouldn’t be any background noise... Any advice appreciated!

NickSutton avatar Oct 22 '19 19:10 NickSutton

MIN_VOLUME_THRESHOLD = 1e-2 work for me

tungheo avatar Mar 31 '20 16:03 tungheo