[sdiy] Approximating sine with plain integer math

John Ames commodorejohn at gmail.com
Thu Apr 7 20:23:17 CEST 2016


On 4/7/16, Tom Wiltshire <tom at electricdruid.net> wrote:
> Could someone tell me what's the advantage of these numerical approaches
> over a simple table look-up?
>
> Obviously a good quality table look-up costs a reasonable amount of memory
> for the table, and should have at least a linear-interp between table
> values, but that still seems simpler than a lot of this. Is there some other
> reason a numerical approach is preferred?
Well, as I said, this is mostly down to my whim. But the main
advantage is that it can have as much precision as you like; with a
lookup table your fundamental resolution is limited to the number of
entries in the table, and even interpolation can only smooth it out so
much. Granted, at audio rates the difference is probably minimal, but
if I want to also use the same oscillator function for LFOs, it could
be a different story.

But mostly I just find it more elegant/pleasing, is all.



More information about the Synth-diy mailing list