Hey,
This reminds me of Michael Hansmeyer’s Columns.
His method/approach is well described in the above links.
Cheers, patternseeing