This blog post has moved to https://matthewvaneerde.wordpress.com/2008/01/08/generating-a-sine-wave/

You must be logged in to post a comment.

This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more

This blog post has moved to https://matthewvaneerde.wordpress.com/2008/01/08/generating-a-sine-wave/

You must be logged in to post a comment.

I think a bug will show up because of the double representation of large numbers.

A better implementation would be one that calculates additional phase given ifFrameOffset, and starts the counter (i) at 0. If I'm understanding the post correctly, this should be superior.