Hi Muddlehead,
We do not need cycles and tau. They just make the algorithm more readable/graspable for us humans.
Test your idea. The goal of this lecture is to achieve a smooth oscillation. Whether you use Rick’s code or your own, is completely up to you. If your approch works, it’s a solution by definition. 
See also:
- Forum User Guides : How to mark a topic as solved