Giter Site home page Giter Site logo

lfo's People

Contributors

mo-thunderz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lfo's Issues

[QUESTION] problem with DACSIZE

Hi,
First of all: thank you very much for this library!
I use it for a vibrato feature for an eurorack keyboard

it works perfectly for sine and square wave but i did not manage to get saw and triangle applied to my note pitch.

Disclaimer: i am not an electronic engineer nor an expert C++ programmer. I just play around with informations i find in the web.

in my cuircuit i have an Arduino Uno with a MCP4821 (12-Bit Single Output DAC with SPI)
based on this line i assume that it's DACSIZE is 4096 for sending 0V to 5V

when i use lfo lfo_class(4096); your lfo gets perfectly added to my base note pitch for waves sine & square but nothing gets added for waves saw nor triangle

in your instructions i found

Reduce the DACSIZE to 256

when i use lfo lfo_class(256); your lfo works perfectly for all 4 waves. but unfortunately my other code for sending the "base pitch" (the lfo should oscillate around) does not work at all.

do you think i have to find the reason in my code or is it possible that you have some kind of limitation in your library (saw+triangle not compatlble to DACSIZE 4096)?

wrong documentation of tempo-synced LFO rate

Hi,
This line refers to see _freq_array which does not exist.

After some playing around i finally figured out how to get the desired tempo division in case sync mode is set to BPM locked.
The unit for the argument of setMode1Rate(float l_mode1_rate) is quarter notes

this means if you want a lfo cycle duration of 1 bar you need to pass 1/4 or 0.25 as argument.

argument | lfo cycle duration
---------------------------------
     .125|   2 bars
     .25 |   1 bar
     .5  |   half note
     1   |   quarter note
     2   |   1/8 note
     3   |   1/12 note
     4   |   1/16 note
     5   |   1/20 note
     6   |   1/24 note
     7   |   1/28 note
     8   |   1/32 note
     9   |   1/36 note
    10   |   1/40 note
    11   |   1/44 note
    12   |   1/48 note
    13   |   1/52 note
    14   |   1/56 note
    15   |   1/60 note
    16   |   1/64 note

consider to update the documentation

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.