FastLED 3.9.15
Loading...
Searching...
No Matches
beat.h File Reference

Detailed Description

Waveform beat generators — sawtooth and sine waves at a given BPM.

Definition in file beat.h.

#include "fl/stl/int.h"
#include "fl/stl/chrono.h"
#include "fl/math/lib8static.h"
#include "fl/math/qfx.h"
#include "fl/math/trig8.h"
#include "fl/math/scale8.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for beat.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

LIB8STATIC u16 fl::beat16 (accum88 beats_per_minute, u32 timebase=0) FL_NOEXCEPT
 Generates a 16-bit "sawtooth" wave at a given BPM.
 
LIB8STATIC u8 fl::beat8 (accum88 beats_per_minute, u32 timebase=0) FL_NOEXCEPT
 Generates an 8-bit "sawtooth" wave at a given BPM.
 
LIB8STATIC u16 fl::beat88 (accum88 beats_per_minute_88, u32 timebase=0) FL_NOEXCEPT
 Generates a 16-bit "sawtooth" wave at a given BPM, with BPM specified in Q8.8 fixed-point format.
 
LIB8STATIC u16 fl::beatsin16 (accum88 beats_per_minute, u16 lowest=0, u16 highest=65535, u32 timebase=0, u16 phase_offset=0) FL_NOEXCEPT
 Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
 
LIB8STATIC u8 fl::beatsin8 (accum88 beats_per_minute, u8 lowest=0, u8 highest=255, u32 timebase=0, u8 phase_offset=0) FL_NOEXCEPT
 Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
 
LIB8STATIC u16 fl::beatsin88 (accum88 beats_per_minute_88, u16 lowest=0, u16 highest=65535, u32 timebase=0, u16 phase_offset=0) FL_NOEXCEPT
 Generates a 16-bit sine wave at a given BPM that oscillates within a given range.