scottlawsonbc / audio-reactive-led-strip

:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi
MIT License
2.67k stars 642 forks source link

How to set the amplitude range? (adjusting the Y axis) #289

Open Yuke-hd opened 3 years ago

Yuke-hd commented 3 years ago

i noticed that the current setting is quite different from the demo video https://www.youtube.com/watch?v=HNtM7jH5GXg

in the demo video, (espically in scroll effect timestamp: 0:04-0:07) i noticed that low amplitude signal got filted, thus the

....[dot]............[dot]........[dot]|[dot]........[dot]............[dot]....

effect (0:04-0:07)

in my setting, i got

...[continuous].........[continuous]|[continuous].........[continuous]...

is there a way to adjust the Y axis just like we can adjust the X axis for freq range?

joeybab3 commented 3 years ago

In config.py at the end there is MIN_VOLUME_THRESHOLD: https://github.com/scottlawsonbc/audio-reactive-led-strip/blob/38502b47b482e66fc27981398a538ecefee85ee3/python/config.py#L104

Is this what you are asking for?

Yuke-hd commented 3 years ago

i'm asking if i can turn this link into this link

joeybab3 commented 3 years ago

@rmit-s3686930-keyu Have you tried adjusting the volume threshold?

Yuke-hd commented 3 years ago

Yes. i noticed that, say i set the threshold is 20%, if the signal is 21%, the signal will be registered, but soon it will be amplified to the "max amplitude", thus the previous signal that below 20% will get registered again I dont want that, i want the threshold to be a absolute value insteads of a realitive value.