|
FastLED 3.10.8
|
#include <vocal.h>
Inheritance diagram for fl::audio::detector::Vocal:
Collaboration diagram for fl::audio::detector::Vocal:Public Member Functions | |
| Vocal () FL_NO_EXCEPT | |
| Vocal () FL_NO_EXCEPT | |
| ~Vocal () FL_NO_EXCEPT | |
| ~Vocal () FL_NO_EXCEPT override | |
| void | fireCallbacks () FL_NO_EXCEPT override |
| float | getConfidence () const |
| float | getConfidence () const FL_NO_EXCEPT |
| float | getFormantRatio () const |
| const char * | getName () const FL_NO_EXCEPT override |
| float | getSpectralCentroid () const |
| float | getSpectralRolloff () const |
| bool | isVocal () const FL_NO_EXCEPT |
| bool | isVocalActive () const |
| bool | needsFFT () const FL_NO_EXCEPT override |
| void | reset () |
| void | reset () FL_NO_EXCEPT override |
| void | setSampleRate (int sampleRate) FL_NO_EXCEPT override |
| void | setSmoothingAlpha (float tau) FL_NO_EXCEPT |
| void | setThreshold (float threshold) |
| void | setThreshold (float threshold) FL_NO_EXCEPT |
| void | update (shared_ptr< Context > context) |
| void | update (shared_ptr< Context > context) FL_NO_EXCEPT override |
Public Member Functions inherited from fl::audio::Detector | |
| virtual | ~Detector () FL_NO_EXCEPT=default |
| virtual bool | needsFFTHistory () const FL_NO_EXCEPT |
Public Attributes | |
| function_list< void(u8 active)> | onVocal |
| function_list< void()> | onVocalEnd |
| function_list< void()> | onVocalStart |
Private Member Functions | |
| float | calculateAutocorrelationIrregularity (span< const i16 > pcm) FL_NO_EXCEPT |
| float | calculateRawConfidence (float formantRatio, float spectralFlatness, float harmonicDensity, float vocalPresenceRatio, float spectralFlux, float spectralVariance) FL_NO_EXCEPT |
| float | calculateSpectralCentroid (const fft::Bins &fft) |
| float | calculateSpectralRolloff (const fft::Bins &fft) |
| float | calculateVocalPresenceRatio (const fft::Bins &broadFft) FL_NO_EXCEPT |
| void | computeBroadSpectralFeatures (const fft::Bins &broadFft) FL_NO_EXCEPT |
| void | computeFormantRatio (const fft::Bins &formantFft) FL_NO_EXCEPT |
| void | computePCMTimeDomainFeatures (span< const i16 > pcm) FL_NO_EXCEPT |
| bool | detectVocal (float centroid, float rolloff, float formantRatio) |
| float | estimateFormantRatio (const fft::Bins &fft) |
Static Private Attributes | |
| static constexpr int | MIN_FRAMES_TO_TRANSITION = 3 |
Friends | |
| struct | VocalDetectorDiagnostics |