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