MCPcopy Create free account
hub / github.com/FastLED/FastLED / updatePitchSmoothing

Method updatePitchSmoothing

src/fl/audio/detector/pitch.cpp.hpp:230–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void Pitch::updatePitchSmoothing(float newPitch) {
231 // OneEuroFilter: adaptive — low jitter when pitch stable, low lag on changes
232 mSmoothedPitch = mPitchSmoother.update(newPitch, mLastDt);
233}
234
235bool Pitch::shouldReportPitchChange(float newPitch) const {
236 // Check if pitch has changed significantly from previous detection

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected