Fork me on GitHub

Dr LUT

Online DSP Lookup Table Generator
(sine wave LUT calculator)

Write any math expression to get a generated C/C++ file with the data array inside.



Tips:

When composing complex formulas, switch to the float data type first to avoid confusion.

Use the Ctrl key while clicking a + or - buttons for a bigger increment or decrement step.

Right click on the plot to see more options.
When the auto fit option is disabled, double click on the plot to auto fit the view.

Use negative amplitude values to mirror vertically the wave shape.


Supported formula expressions:

Variables:
- current sample index (from 0 to array size-1)
- number of samples per one period
rand - fresh random number (from -1.0 to 1.0)

Constants:
pi, e

Functions:
abs(x), acos(x), asin(x), atan(x), atan2(x,y), ceil(x), cos(x),
cosh(x), exp(x), fac(x), floor(x), ln(x), log(x), log10(x), ncr(x,y),
npr(x,y), pow(x,y), sin(x), sinh(x), sqrt(x), step(x), tan(x), tanh(x)
.

Operators:
+, -, *, /, ^, %, (, ), ,



https://github.com/ppelikan/drlut

Copyright (c)  by ppelikan