|
FastLED 3.9.15
|
| LIB8STATIC u8 fl::beatsin8 | ( | accum88 | beats_per_minute, |
| u8 | lowest = 0, | ||
| u8 | highest = 255, | ||
| u32 | timebase = 0, | ||
| u8 | 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 105 of file beat.h.
References beat8(), FL_NOEXCEPT, and LIB8STATIC.
Referenced by fl::DemoReel100::bpm(), fl::Pacifica::draw(), and fl::Pacifica::pacifica_add_whitecaps().
Here is the call graph for this function:
Here is the caller graph for this function: