|
arduino-audio-tools
|
#include <FFTDisplay.h>
Public Member Functions | |
| FFTDisplay (AudioFFTBase &fft) | |
| void | begin () |
| float | getMagnitude (int x) |
| int | getMagnitudeScaled (int x, int max) |
Static Public Member Functions | |
| static void | fftCallback (AudioFFTBase &fft) |
| callback method which provides updated data from fft | |
Public Attributes | |
| int | fft_group_bin = 1 |
| group result by adding subsequent bins | |
| float | fft_max_magnitude = 700.0f |
| Influences the senitivity. | |
| int | fft_start_bin = 0 |
| start bin which is displayed | |
Protected Member Functions | |
| void | loadMangnitudes () |
Protected Attributes | |
| Vector< float > | magnitudes {0} |
| AudioFFTBase * | p_fft = nullptr |
Display FFT result: we can define a start bin and group susequent bins for a combined result.
|
inline |
Returns the magnitude for the indicated led x position. We might need to combine values from the magnitudes array if this is much bigger.