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

◆ beat16()

LIB8STATIC uint16_t beat16 ( accum88 beats_per_minute,
uint32_t 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
Examples
Pacifica.ino.

Definition at line 913 of file lib8tion.h.

914{
915 // Convert simple 8-bit BPM's to full Q8.8 accum88's if needed
916 if( beats_per_minute < 256) beats_per_minute <<= 8;
917 return beat88(beats_per_minute, timebase);
918}
LIB8STATIC uint16_t beat88(accum88 beats_per_minute_88, uint32_t timebase=0)
Generates a 16-bit "sawtooth" wave at a given BPM, with BPM specified in Q8.8 fixed-point format.
Definition lib8tion.h:897

References beat88(), and LIB8STATIC.

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

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