New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for sawtooth wave to be added to FastLED. You already have a triangle wave. #565

Open
atuline opened this Issue Feb 10, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@atuline

atuline commented Feb 10, 2018

Please see the following diagram:

http://cds.linear.com/image/WaveformShapes.png

which shows that a triangle wave is not a sawtooth wave, thus my request.

As a matter of fact, a sawtooth wave in both directions would even be better.

Thanks,

Andrew

@0xD34DC0DE

This comment has been minimized.

0xD34DC0DE commented Feb 13, 2018

1060_triangle_saw1_1

credit to the user who posted this image at this site:https://www.muffwiggler.com/forum/viewtopic.php?p=1144128

@kriegsman

This comment has been minimized.

Contributor

kriegsman commented Feb 13, 2018

Check out "beat8( BPM)", which is the sawtooth wave from 0-255 that's used to generate all the other waveforms. "beat88( BPM)" is the same, but with higher precision.
http://fastled.io/docs/3.1/group__lib8tion.html#ga12014943214a72eec31433d9682d4ebe

I can leave this ticket open as a reminder to myself to add synonyms called "sawtooth8" or something next time there's an update.

@kriegsman kriegsman self-assigned this Feb 13, 2018

@atuline

This comment has been minimized.

atuline commented Feb 14, 2018

Thanks. I'll study and play around with those more carefully.

@R-OLE

This comment has been minimized.

R-OLE commented Sep 18, 2018

Also please remove the "aka sawtooth" phrase from the wiki entry on wave functions to:

  1. Not lead folks astray that are just learning these concepts
  2. Avoid confusion with the aptly named functions listed in this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment