32void QSineWaveValidator::feedSample(
float sample)
34 if (pendingFramesBeforeAnalysis == framesBeforeAnalysis) {
36 y.fill(b0 / a0 * sample);
45 y[0] = (b0 / a0) * x[0] + (b1 / a0) * x[1] + (b2 / a0) * x[2] - (a1 / a0) * y[1]
48 accumPeak = std::max(std::abs(sample), accumPeak);
50 if (pendingFramesBeforeAnalysis) {
51 pendingFramesBeforeAnalysis -= 1;
55 accumNotchPeak = std::max(std::abs(y[0]), accumNotchPeak);