|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Real-time monophonic pitch detection using the YIN algorithm. More...
#include "../Core/DspMath.h"#include "../Core/FFT.h"#include <algorithm>#include <atomic>#include <cmath>#include <cstddef>#include <memory>#include <span>#include <vector>

Go to the source code of this file.
Classes | |
| class | dspark::PitchDetector< T > |
| Thread-safe YIN pitch detector with lock-free readout. More... | |
Namespaces | |
| namespace | dspark |
| Main namespace for the DSPark framework. | |
Real-time monophonic pitch detection using the YIN algorithm.
Implements the YIN autocorrelation method (de Cheveigne & Kawahara, 2002) with the difference function computed as a frequency-domain cross-correlation (YIN-FFT, 3 FFTs per detection). A mirrored input buffer keeps every analysis window fully contiguous in memory.
Threading:
Dependencies: DspMath.h, FFT.h.
Definition in file PitchDetector.h.