FastLED 3.9.15
Loading...
Searching...
No Matches
fl::audio::SpectralFluxDetector Class Reference

Detailed Description

Definition at line 299 of file audio_reactive.h.

#include <audio_reactive.h>

+ Collaboration diagram for fl::audio::SpectralFluxDetector:

Public Member Functions

 SpectralFluxDetector () FL_NOEXCEPT
 
 ~SpectralFluxDetector () FL_NOEXCEPT
 
float calculateSpectralFlux (span< const float, 16 > currentBins, span< const float, 16 > previousBins)
 
bool detectOnset (span< const float, 16 > currentBins)
 
float getThreshold () const
 
void reset ()
 
void setThreshold (float threshold)
 

Private Attributes

float mFluxThreshold
 
fl::array< float, 16 > mPreviousMagnitudes
 

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