FastLED 3.9.15
Loading...
Searching...
No Matches

◆ beat16()

LIB8STATIC u16 fl::beat16 ( accum88 beats_per_minute,
u32 timebase = 0 )

Generates a 16-bit "sawtooth" wave at a given BPM.

Parameters
beats_per_minutethe frequency of the wave, in decimal
timebasethe time offset of the wave from the millis() timer

Definition at line 41 of file beat.h.

41 {
42 // Convert simple 8-bit BPM's to full Q8.8 accum88's if needed
43 if (beats_per_minute < 256)
44 beats_per_minute <<= 8;
45 return beat88(beats_per_minute, timebase);
46}
LIB8STATIC u16 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.
Definition beat.h:26

References beat88(), FL_NOEXCEPT, and LIB8STATIC.

Referenced by beat8(), beatsin16(), and fl::Pacifica::draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: