Hi Darrel,

this is for an AGC for a guitar sustainer circuit (a sustained/infinite guitar note is pretty much a perfect sine - because it's only the initial pluck that's full of harmonics & they drop out quickly), but I take your point about about the cycles & maths involved...