ESP32-Audio-Spectrum-Waveform-Display
ESP32-Audio-Spectrum-Waveform-Display copied to clipboard
eqBand audiospectrum[EQBANDS]
Hi, first excellent port form G6EJD spectrum display. I'm using your code to built my own "music LED matrix display". As I had a ODROID-Go your code was the perfect start on getting my animations running But I cant figure out how the values are represented in the eqBand struct? The amplitude is it just a linear add to the measured value in the FFT bin? The bandwidth, what is the "unit" ? (trying to understand the spacing)
// David
Hey David, thanks for your feedback :+1:
My effort was mostly to refactor the code in an attempt to understand how it worked, so I may have failed at naming correctly some variables :-)
As far as I remember the amplitude values were supposed to act like those potentiometers you find on a real Hi-Fi EQBand module.
You probably want to fine-tune those if you change the bit depth of analogRead.
This reminds me I've made an UI for M5Stack that answers this problem although it uses a MSGEQ7.
If you add all the bandwidth values, the total is 255, so every band has a share of the audio spectrum proportional to the value.
This enables the possibility of having an arbitraty amount of eq bands (up to 255).