arduino-audio-tools
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
FFTDisplay Class Reference

#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}
 
AudioFFTBasep_fft = nullptr
 

Detailed Description

Display FFT result: we can define a start bin and group susequent bins for a combined result.

Member Function Documentation

◆ getMagnitude()

float getMagnitude ( int  x)
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.


The documentation for this class was generated from the following file: