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

Removing scipy? #361

Open JayBeAl opened 1 year ago

JayBeAl commented 1 year ago

I was trying to run the visualization script on my smartphone with termux. The problem is to get scipy running. After trying several hours try to get scipy working i surrendered. I then viewed the visualization.py code and saw, that there are only a few lines of code used from scipy. So why not just implement an own easy 1d gauss filter to remove the scipy dependency, which is a cause of many problems in this project? I found my solution here, didnt test it yet, but i'll report my results:

https://stackoverflow.com/questions/11209115/creating-gaussian-filter-of-required-length-in-python

joeybab3 commented 1 year ago

Feel free to test this and report back, if it doesn't cause a performance hit it might be worth it.