|
FastLED 3.9.15
|
#include <vocal.h>
Inheritance diagram for fl::audio::detector::Vocal:
Collaboration diagram for fl::audio::detector::Vocal:Public Member Functions | |
| Vocal () FL_NOEXCEPT | |
| Vocal () FL_NOEXCEPT | |
| ~Vocal () FL_NOEXCEPT | |
| ~Vocal () FL_NOEXCEPT override | |
| void | fireCallbacks () override |
| float | getConfidence () const |
| float | getConfidence () const |
| float | getFormantRatio () const |
| const char * | getName () const override |
| float | getSpectralCentroid () const |
| float | getSpectralRolloff () const |
| bool | isVocal () const |
| bool | isVocalActive () const |
| bool | needsFFT () const override |
| void | reset () |
| void | reset () override |
| void | setSampleRate (int sampleRate) override |
| void | setSmoothingAlpha (float tau) |
| void | setThreshold (float threshold) |
| void | setThreshold (float threshold) |
| void | update (shared_ptr< Context > context) |
| 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 |
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) |
| float | calculateRawConfidence (float formantRatio, float spectralFlatness, float harmonicDensity, float vocalPresenceRatio, float spectralFlux, float spectralVariance) |
| float | calculateSpectralCentroid (const fft::Bins &fft) |
| float | calculateSpectralRolloff (const fft::Bins &fft) |
| float | calculateVocalPresenceRatio (const fft::Bins &broadFft) |
| void | computeBroadSpectralFeatures (const fft::Bins &broadFft) |
| void | computeFormantRatio (const fft::Bins &formantFft) |
| void | computePCMTimeDomainFeatures (span< const i16 > pcm) |
| 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 |