Update BPM estimate from inter-beat intervals.
Definition at line 183 of file musical_beat_detector.cpp.hpp.
183 {
185 return;
186 }
187
188
190 if (avgIBI <= 0.0f) {
191 return;
192 }
193
194 float instantaneousBPM = 60.0f / avgIBI;
195
196
198
199
200 float alpha =
mConfig.bpmSmoothingAlpha;
202
203
205}
deque< u32 > mIBIHistory
Inter-beat interval history (in frames)
float mCurrentBPM
Current BPM estimate (smoothed)
float getAverageIBI() const
Get inter-beat interval (IBI) statistics.
MusicalBeatDetectorConfig mConfig
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NOEXCEPT
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
References getAverageIBI(), fl::max(), mConfig, mCurrentBPM, mIBIHistory, and fl::min().
Referenced by processSample().