Giter Club home page Giter Club logo

drlut's Introduction

Dr LUT - Lookup Table Generator Dr LUT icon

Online tool written in C/C++ that generates waveforms and exports them as arrays.

Online version: https://ppelikan.github.io/drlut

Features:

  • live editing of waveform formula (C/C++ compatible syntax)
  • available waveform presets:
    • zeros, sin, cos, tan, ctan, sawtooth, triangle, white noise, gauss, hamming, hann, bartlett, flat top, sigmoid
  • available output array formats:
    • signed: int8, int16, int32, float (double)
    • unsigned: uint8, uint16, uint32
  • configurable amplitude and y-axis offset
  • selectable int range behaviour:
    • overflow or saturation
  • selectable array output format:
    • hexadecimal or decimal


todo:
* add array size computation in bytes/kbytes/megabytes and widget to display it
* "warning: 'BeginPlot' is deprecated"
* fix broken comments for formulas containing `\n` characters (buildLut() function)
* NaN and INF warning should be shown if detected (before type casting)
* fix clipboard (Ctrl+C and Ctrl+V) on web target
* add include guards to generated headers

Building

Portable version (use this for debuging):

Tool installation:

sudo apt-get install gcc make libglfw3-dev libgles2-mesa-dev
git clone https://github.com/ocornut/imgui.git
git clone https://github.com/epezent/implot.git

Building:

cd drlut
make portable
./build/portable/app_executable

Web WASM Emscripten version (for release deployment):

Tool installation:

sudo apt-get install cmake python3
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install latest
./emsdk activate latest

Building:

cd drlut
source 'path_to_your_emscripten_installation/emsdk/emsdk_env.sh'
make web
make serve

drlut's People

Contributors

ppelikan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.