|
FastLED 3.9.15
|
Definition at line 14 of file dynamics_analyzer.h.
#include <dynamics_analyzer.h>
Inheritance diagram for fl::audio::detector::DynamicsAnalyzer:
Collaboration diagram for fl::audio::detector::DynamicsAnalyzer:Public Member Functions | |
| DynamicsAnalyzer () FL_NOEXCEPT | |
| ~DynamicsAnalyzer () FL_NOEXCEPT override | |
| void | fireCallbacks () override |
| float | getAverageRMS () const |
| float | getCompressionRatio () const |
| float | getCurrentRMS () const |
| float | getDynamicTrend () const |
| const char * | getName () const override |
| float | getPeakRMS () const |
| bool | isCrescendo () const |
| bool | isDiminuendo () const |
| bool | needsFFT () const override |
| void | reset () override |
| void | setHistorySize (fl::size size) |
| void | setSmoothingFactor (float alpha) |
| void | setTrendThreshold (float threshold) |
| void | update (shared_ptr< Context > context) override |
Public Member Functions inherited from fl::audio::Detector | |
| virtual | ~Detector () FL_NOEXCEPT=default |
| virtual bool | needsFFTHistory () const FL_NOEXCEPT |
| virtual void | setSampleRate (int) FL_NOEXCEPT |
Public Attributes | |
| function_list< void(float compression)> | onCompressionRatio |
| function_list< void()> | onCrescendo |
| function_list< void()> | onDiminuendo |
| function_list< void(float trend)> | onDynamicTrend |
Private Member Functions | |
| float | calculateTrend () |
| void | updateCompression () |
| void | updatePeak (float rms) |
Private Attributes | |
| float | mAverageRMS |
| float | mCompressionRatio |
| float | mCurrentRMS |
| fl::size | mHistoryIndex |
| fl::size | mHistorySize |
| bool | mIsCrescendo |
| bool | mIsDiminuendo |
| u32 | mLastUpdateTime |
| float | mMinRMS |
| float | mPeakDecay |
| float | mPeakRMS |
| bool | mPrevIsCrescendo |
| bool | mPrevIsDiminuendo |
| vector< float > | mRMSHistory |
| float | mSmoothingFactor |
| float | mTrend |
| float | mTrendThreshold |