FastLED 3.9.15
|
LIB8STATIC uint8_t beatsin8 | ( | accum88 | beats_per_minute, |
uint8_t | lowest = 0, | ||
uint8_t | highest = 255, | ||
uint32_t | timebase = 0, | ||
uint8_t | phase_offset = 0 ) |
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
beats_per_minute | the frequency of the wave, in decimal |
lowest | the lowest output value of the sine wave |
highest | the highest output value of the sine wave |
timebase | the time offset of the wave from the millis() timer |
phase_offset | phase offset of the wave from the current position |
Definition at line 975 of file lib8tion.h.
References beat8(), LIB8STATIC, scale8(), and sin8.
Referenced by bpm(), fl::DemoReel100::bpm(), fl::Pacifica::draw(), loop(), fl::Pacifica::pacifica_add_whitecaps(), pacifica_add_whitecaps(), and pacifica_loop().