Definition at line 648 of file audio_reactive.cpp.hpp.
648 {
649
653
654
656 !
mConfig.enableMusicalBeatDetection && !
mConfig.enableMultiBandBeats) {
657 return;
658 }
659
660
662 return;
663 }
664
665
666 bool onsetDetected = false;
667 float onsetStrength = 0.0f;
668
672 );
673
674
675
676
677
678 if (onsetDetected) {
680 }
681 }
682
683
684 if (
mConfig.enableMusicalBeatDetection) {
686
688
691 }
692 } else if (onsetDetected) {
693
696 }
697
698
699 if (
mConfig.enableMultiBandBeats) {
701
705 }
else if (
mConfig.enableMultiBand) {
706
707
710 }
711
712
715 }
716
717
720 }
721 }
722}
fl::unique_ptr< SpectralFluxDetector > mSpectralFluxDetector
fl::unique_ptr< detector::MultiBandBeat > mMultiBandBeatDetector
fl::unique_ptr< detector::MusicalBeat > mMusicalBeatDetector
static constexpr fl::u32 BEAT_COOLDOWN
References BEAT_COOLDOWN, mConfig, mCurrentData, mLastBeatTime, mMultiBandBeatDetector, mMusicalBeatDetector, and mSpectralFluxDetector.
Referenced by processSample().