Implements fl::audio::Detector.
Definition at line 37 of file tempo_analyzer.cpp.hpp.
37 {
40 u32 timestamp = context->getTimestamp();
41
42
44
45
47
48
53 }
54
55
57 }
58
60
61
62 size numBins =
fl::min(
static_cast<size
>(8),
fft.raw().size());
65 }
66
67
69
70
72
73
75
76
77
78
79 float dt = 0.0f;
82 }
85
86 const bool isSilent = context->isSilent();
88
89
93}
void updateHypotheses(u32 timestamp) FL_NO_EXCEPT
vector< float > mPreviousMagnitudes
void updateCurrentTempo() FL_NO_EXCEPT
static constexpr size MAX_ONSET_HISTORY
void updateStability() FL_NO_EXCEPT
void pruneHypotheses() FL_NO_EXCEPT
float calculateSpectralFlux(const fft::Bins &fft) FL_NO_EXCEPT
void updateAdaptiveThreshold() FL_NO_EXCEPT
bool detectOnset(u32 timestamp) FL_NO_EXCEPT
shared_ptr< const fft::Bins > mRetainedFFT
SilenceEnvelope mConfidenceEnvelope
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NO_EXCEPT
constexpr enable_if< is_fixed_point< T >::value, T >::type abs(T x) FL_NO_EXCEPT
References TempoAnalyzer(), fl::abs(), calculateSpectralFlux(), detectOnset(), fl::FL_NO_EXCEPT, isSilent, MAX_ONSET_HISTORY, mBpmChanged, mConfidence, mConfidenceEnvelope, mCurrentBPM, mHasPrevTimestamp, fl::min(), mOnsetTimes, mPreviousBPM, mPreviousFlux, mPreviousMagnitudes, mPrevTimestamp, mRetainedFFT, pruneHypotheses(), update(), updateAdaptiveThreshold(), updateCurrentTempo(), updateHypotheses(), and updateStability().
Referenced by ~TempoAnalyzer(), and update().