This is a very short (<100 lines) implementation of a phase-locked loop in C++, to be used as a musical distortion effect. It supports three different phase detector algorithms: multiplier, JK-flipflop, and PFD (phase frequency detector).
This is a very short (<100 lines) implementation of a phase-locked loop in C++, to be used as a musical distortion effect. It supports three different phase detector algorithms: multiplier, JK-flipflop, and PFD (phase frequency detector).