FastLED 3.9.15
|
LIB8STATIC uint16_t beatsin88 | ( | accum88 | beats_per_minute_88, |
uint16_t | lowest = 0, | ||
uint16_t | highest = 65535, | ||
uint32_t | timebase = 0, | ||
uint16_t | phase_offset = 0 ) |
Generates a 16-bit sine wave at a given BPM that oscillates within a given range.
beats_per_minute_88 | the frequency of the wave, in Q8.8 format |
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 939 of file lib8tion.h.
References beat88(), LIB8STATIC, scale16(), and sin16.
Referenced by fl::Pacifica::draw(), fl::Pride2015::draw(), pacifica_loop(), and pride().