27struct QSineWaveValidator
29 QSineWaveValidator(
const QSineWaveValidator &) =
delete;
30 QSineWaveValidator(QSineWaveValidator &&) =
delete;
31 QSineWaveValidator &operator=(
const QSineWaveValidator &) =
delete;
32 QSineWaveValidator &operator=(QSineWaveValidator &&) =
delete;
34 QSineWaveValidator(
float notchFrequency,
float sampleRate);
36 void feedSample(
float sample);
38 float peak()
const {
return accumPeak; }
39 float notchPeak()
const;
45 std::array<
float, 3> x{}, y{};
46 int framesBeforeAnalysis = 128;
48 int pendingFramesBeforeAnalysis = framesBeforeAnalysis;
51 float accumNotchPeak{};