ESP32-Audio-Spectrum-Waveform-Display icon indicating copy to clipboard operation
ESP32-Audio-Spectrum-Waveform-Display copied to clipboard

eqBand audiospectrum[EQBANDS]

Open Aggebitter opened this issue 5 years ago • 1 comments

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

Aggebitter avatar Mar 22 '20 11:03 Aggebitter

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).

tobozo avatar Mar 23 '20 18:03 tobozo