|
FastLED 3.9.15
|
#include <buildup.h>
Inheritance diagram for fl::audio::detector::BuildupDetector:
Collaboration diagram for fl::audio::detector::BuildupDetector:Public Member Functions | |
| BuildupDetector () FL_NOEXCEPT | |
| ~BuildupDetector () FL_NOEXCEPT override | |
| void | fireCallbacks () override |
| const Buildup & | getBuildup () const |
| float | getIntensity () const |
| const char * | getName () const override |
| float | getProgress () const |
| bool | isBuilding () const |
| bool | needsFFT () const override |
| bool | needsFFTHistory () const override |
| void | reset () override |
| void | setEnergyRiseThreshold (float threshold) |
| void | setIntensityThreshold (float threshold) |
| void | setMaxDuration (u32 ms) |
| void | setMinDuration (u32 ms) |
| void | update (shared_ptr< Context > context) override |
Public Member Functions inherited from fl::audio::Detector | |
| virtual | ~Detector () FL_NOEXCEPT=default |
| virtual void | setSampleRate (int) FL_NOEXCEPT |
Public Attributes | |
| function_list< void(const Buildup &)> | onBuildup |
| function_list< void()> | onBuildupEnd |
| function_list< void()> | onBuildupPeak |
| function_list< void(float progress)> | onBuildupProgress |
| function_list< void()> | onBuildupStart |
Private Member Functions | |
| float | calculateBuildupIntensity (float energyTrend, float trebleTrend, float rms) const |
| float | calculateEnergyTrend () const |
| float | calculateTrebleTrend () const |
| float | getTrebleEnergy (const fft::Bins &fft) const |
| bool | shouldEndBuildup () const |
| bool | shouldPeak () const |
| bool | shouldStartBuildup (float intensity) const |
| void | updateEnergyHistory (float energy) |
| void | updateTrebleHistory (float treble) |
Private Attributes | |
| bool | mBuildupActive |
| Buildup | mCurrentBuildup |
| float | mEnergyHistory [32] |
| int | mEnergyHistoryIndex |
| int | mEnergyHistorySize |
| float | mEnergyRiseThreshold |
| SavitzkyGolayFilter< float, 7 > | mEnergySG |
| bool | mFireBuildup = false |
| bool | mFireBuildupEnd = false |
| bool | mFireBuildupPeak = false |
| bool | mFireBuildupProgress = false |
| bool | mFireBuildupStart = false |
| float | mIntensityThreshold |
| u32 | mLastUpdateTime |
| u32 | mMaxDuration |
| u32 | mMinDuration |
| bool | mPeakFired |
| float | mPrevEnergy |
| float | mPrevTreble |
| shared_ptr< const fft::Bins > | mRetainedFFT |
| float | mTrebleHistory [16] |
| int | mTrebleHistoryIndex |
| int | mTrebleHistorySize |
| SavitzkyGolayFilter< float, 7 > | mTrebleSG |