Definition at line 266 of file tempo_analyzer.cpp.hpp.
266 {
271 return;
272 }
273
274
275 float sum = 0.0f;
278 }
279 float mean = sum /
static_cast<float>(
mBPMHistory.size());
280
281 float variance = 0.0f;
284 variance += diff * diff;
285 }
286 variance /=
static_cast<float>(
mBPMHistory.size());
287
288
291
292
297 }
298 } else {
301 }
302}
deque< float > mBPMHistory
float mStabilityThreshold
static constexpr u32 STABLE_FRAMES_REQUIRED
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
constexpr enable_if< is_fixed_point< T >::value, T >::type sqrt(T x) FL_NOEXCEPT
References fl::max(), mBPMHistory, mIsStable, mStability, mStabilityThreshold, mStableFrameCount, fl::sqrt(), and STABLE_FRAMES_REQUIRED.
Referenced by update().