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

Advice for low frequency & high fft bins #303

Open SpikedCola opened 3 years ago

SpikedCola commented 3 years ago

Hi,

First, big thanks for your work on this project. It was really easy to get going out of the box and works well!

I am trying to visualize just the sub-bass, so I've set min_frequency to 20 and max_frequency to 200, n_rolling_history to 2, and n_fft_bins to 40. I'm expecting 40 buckets/peaks with ~5Hz in each. Instead I only see 6 buckets:

image

If I adjust n_rolling_history, eg. by setting to 3 instead of 2, I get a couple more bins:

image

Any advice? Thanks again!