FastLED 3.9.15
|
LIB8STATIC uint16_t beatsin16 | ( | accum88 | beats_per_minute, |
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 | 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 957 of file lib8tion.h.
References beat16(), LIB8STATIC, scale16(), and sin16.
Referenced by fl::Pacifica::draw(), fl::DemoReel100::juggle(), juggle(), loop(), pacifica_loop(), fl::DemoReel100::sinelon(), and sinelon().