[sdiy] Approximating sine with plain integer math

John Ames commodorejohn at gmail.com
Thu Apr 7 01:38:42 CEST 2016


Just realized my code sample causes a divide-by-zero due to my lazy
derivation of the sign. (You'd think that'd be a C standard library
function...) Also, it does overflow after all, around the 270 degree
mark. The first is an easy fix; the second, not so much. I'll need to
give this some more thought.



More information about the Synth-diy mailing list